PySvn
PySvn copied to clipboard
Add svn copy and svn switch
Like what you have done but a couple of key things seem missing
svn copy to allow creation of branches or tags
svn switch to switch a working copy to a different branch or tag
Currently I'm working around this is my scripts by using commands to run the svn client directly, as a newbie to python don't feel qualified yet to provide a suggested patch to your code
You can use this for svn switch
r = svn.remote.RemoteClient('https://repo.local/svn')
r.run_command('sw', [r.url, '/tmp/working'])
and the following code can be used to perform svn copy
svn_obj = svn.remote.RemoteClient(source_url)
svn_obj.run_command('copy', [svn_obj.url,destination_url,"-m","creating branch"])