from subprocess import Popen, PIPE
def svn_co(url):
return run_program('svn', 'co', url)
def run_program(*args):
popen_obj = Popen(args, stderr=PIPE)
_, errors = popen_obj.communicate()
if popen_obj.returncode:
print errors
# This will get all the files in myproject's tagged version
# named tagname into the current directory
svn_co('http://svn.myserver.net/myproject/tags/tagname')
您是否使用svn作为存储库?它看起来像这样:
相关问题 更多 >
编程相关推荐