Op 15-mrt.-2014 04:08 schreef "Andreas Stieger" <andreas.stie...@gmx.de>: > > Hello, > > On 14/03/14 17:15, Havlovick, Ron wrote: > > When the last person commits their files into svn, post svnhook I > > believe, an asci file will be created or written to, which contains the > > revision number of that last svn commit. > > Contrary to what Henrik wrote.. just ad a post-commit hook with > something like this: > > GNU/Linux: > > #!/bin/sh > REPOS="$1" > REV="$2" > echo "$REV" > /path/to/file.txt > > Windows: > > SET REPOS-PATH=%1 > SET REV=%2 > echo %REV% > C:\Path\to\file.txt >
Careful: this does not guarantee that file.txt contains the last committed revision. The post-commit hook can be running concurrently for multiple commits, so there is a race here. Johan