I looked at the python binding for subversion, but in the end I found it easier to just call svn.exe as follows:
(stdout, stderr, err) = execute('svn export "%s" "%s"' \ % (exportURL, workingCopyFolder))
where execute is a function like this:
def execute(cmd): import subprocess proc = subprocess.Popen(\ cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdout, stderr) = proc.communicate() return (stdout, stderr, proc.returncode)
The svn.exe output is intended for easy analysis if necessary. There is even a -xml output option.
source share