PySvn icon indicating copy to clipboard operation
PySvn copied to clipboard

Add svn copy and svn switch

Open keelerad opened this issue 5 years ago • 2 comments

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

keelerad avatar Oct 02 '18 16:10 keelerad

You can use this for svn switch

r = svn.remote.RemoteClient('https://repo.local/svn')
r.run_command('sw', [r.url, '/tmp/working']) 

kovacsbalu avatar Jul 24 '19 13:07 kovacsbalu

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"]) 

zno-man avatar Jul 27 '23 06:07 zno-man