I have a problem when trying to commit to SVN using a python script.
When I do the following:
proj.svn.commit(r'Updated by build server')
I get an error if I dont set the project infomation object first:
projInfo = proj.get_project_info()
projInfo.version = "126.96.36.199"
If I set the project information object, as above, the commit succeeds, but leaves the project information object locked in SVN.
(Notice that if the project information object is modified compared to the SVN base, then it is commited and left unlocked as it should, but if the project information object does not contain modifications it is left in the locked state, which is a problem since the next time I run the script it will fail)
I have tried using the unlock method, like
as described in the documentation, but I get an error when using this saying that the unlock method does not exist.
This means that I cannot commit from python, without the project information object being left in the locked state.
Any suggestions how to solve this?
Thank in advance.