--- a/trunk/cforge/cforge/Package/CFORGE/Scripts/pysvn.py +++ b/trunk/cforge/cforge/Package/CFORGE/Scripts/pysvn.py @@ -63,6 +63,16 @@ p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) (output, err) = p.communicate() +def svn_checkout_all(username, password, url, destination): + cmd="svn checkout --username=%s --password=%s %s %s" % (username, password, url, destination) + p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) + (output, err) = p.communicate() + +def svn_remove_local(destination): + cmd="svn update --set-depth exclude %s" % (destination) + p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) + (output, err) = p.communicate() + def svn_get_stat(folder): cmd="svn stat %s" % (folder) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)