Question

I am trying to write a pre-commit hook script that will alter a specific svn-property of a folder/file.
The script looks fairly similar to the one that is documented in the svn book.

I figured out how to set/change the property of a node and when executing the binding function svn.fs.commit_txn the property of the node actually gets set. But at the moment tortoise always gives me a conflict on the folder I am altering the property. I wrote my script with Python but am new python and hook scripts.

Hope someone can give me a clue why I am getting this conflict..

Was it helpful?

Solution

After updating a property on a directory you are required to update that directory before committing.

OTHER TIPS

You should never change data in a hook script. You lose the synchronization of the client and the subversion repository.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top