3

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

bahrep
  • 29,961
  • 12
  • 103
  • 150
Mark
  • 7,891
  • 5
  • 27
  • 36

2 Answers2

1

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

UncleZeiv
  • 18,272
  • 7
  • 49
  • 77
0

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

xpda
  • 15,585
  • 8
  • 51
  • 82
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
  • Okay I didn't know that but I will look for a different approach to solve my problem. Thanks for the advice! – Mark May 25 '10 at 19:58