문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top