views:

33

answers:

2

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..

+1  A: 

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

UncleZeiv
A: 

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

khmarbaise
Okay I didn't know that but I will look for a different approach to solve my problem. Thanks for the advice!
Mark