I have a revision.txt file in my SVN project.
Basically I want that this file is updated automatically when I call svn ci with the revision number the working copy will have after the commit.
For example:
- revision.txt contains "10"
- I make some change to my working copy (other files, not revision.txt)
- svn ci
- launch hook script
- read next revision number
- update revision.txt
- commit changes (also revision.txt)
- now revision.txt is already committed with revision number 11
I've tried without success with an hook script. I cannot retrieve the next revision number and update the transactione before committing.
Then try with "auto-props", but they are working only with modified files. The preferable solution is using only hook script and not using a wrapper script which check the revision and update.
Is possible ? Examples are welcome