I have a program written in Python.
I deploy changes to the users using SVN.
In some cases the SVN get stuck and the changes are not downloaded to the user computer. In such case I need to perform SVN CLEANUP
manually. The problem is that I don't know which station has which revision. so the users continue to work on older revisions which causes problems.
I want to write a code that on program lunch it will compare the local SVN revision with the server and if it doesn't match a message will appear.
I have managed to write the code which gets the revision of the server:
import re,subprocess
svn_info = subprocess.check_output("svn info svn_address")
print (re.search(ur"Revision:\s\d+", svn_info)).group()
But I don't understand how do I get the local revision in order to compare.
If I go to the SVN
local folder and do:
svn info
I see the local revision. But I don't know how to access this data inside the python code.
Any idea?