I use TurtoiseSVN but don't use a compiler. I simply manage a set of files. Nevertheless I want to have some kind of built number (set number) to be able to identify of which status an export is. So I tried to use the post-commit hook which launched a batch file that exported the revision into a file in the Current Working Directory (ECHO %REV% > %CWD%/built.txt)
This has the big disadvantage that after the commit I immediately have an uncommitted file in my Working Copy. and that an export is always inconsistent with this situation (especially with multiple contributors in the same repository).
I would have used the start-commit hook but it does not have the revision parameter (only PATH MESSAGEFILE CWD).
How can I solve this?
Last updated