Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Im using SVN command line in python and need to retain the commit revision

I'm setting up a process that commits some changes in SVN then merges these changes into the live project. I'm struggling to capture the commit revision number and use this for merging. Currently I'm doing this in my python code:

args = 'svn commit -m "daily update"'
cmd_output = check_output(args , shell = True)

os.chdir(livefolder)
svn merge -c ?? //branch_dir

How do I capture the revision and add this in the ?? above?

Comments