颇为阿娇978 发表于 2017-4-26 08:37:48

python更新svn

def UpdateSvn(strUser, strPwd, strUpPath):
strExec = "svn up '%s' --username %s --password %s --no-auth-cache" %(strUpPath, strUser, strPwd);
print("cmd:%s" %strExec);
nRet = os.system(strExec);
print("nRet = %d" %nRet);
return (0 == nRet);
if "__main__" == __name__:
bUp = UpdateSvn('user', 'pwd', '/home/root/work_path');
if bUp:
print("svn up succ!");
else:
print("svn up failed!");
 
页: [1]
查看完整版本: python更新svn