开发者

SVN hook script conflict

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 exe开发者_高级运维cuting 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜