a/trunk/cforge/cforge/Package/CFORGE/Scripts/pysvn.py | b/trunk/cforge/cforge/Package/CFORGE/Scripts/pysvn.py | ||
---|---|---|---|
... |
... |
||
61 | for d in dirs: |
61 | for d in dirs: |
62 | cmd="svn update --depth=files --username=%s --password=%s %s/%s" % (username, password, destination, d) |
62 | cmd="svn update --depth=files --username=%s --password=%s %s/%s" % (username, password, destination, d) |
63 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) |
63 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) |
64 | (output, err) = p.communicate() |
64 | (output, err) = p.communicate() |
65 | 65 | ||
66 | def svn_checkout_all(username, password, url, destination): |
||
67 | cmd="svn checkout --username=%s --password=%s %s %s" % (username, password, url, destination) |
||
68 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) |
||
69 | (output, err) = p.communicate() |
||
70 | |||
71 | def svn_remove_local(destination): |
||
72 | cmd="svn update --set-depth exclude %s" % (destination) |
||
73 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) |
||
74 | (output, err) = p.communicate() |
||
75 | |||
66 | def svn_get_stat(folder): |
76 | def svn_get_stat(folder): |
67 | cmd="svn stat %s" % (folder) |
77 | cmd="svn stat %s" % (folder) |
68 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) |
78 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) |
69 | (stat, err) = p.communicate() |
79 | (stat, err) = p.communicate() |
70 | return stat |
80 | return stat |