I use $Rev:$ in a file to have the revision number, the problem is that the file does not change a lot so the number is not automatically updated. Any help in how to do this?
views:
682answers:
2
A:
If you're using this for a build/version number in a file, look into the svnrev or WCSubRev tools to create the information you need.
Harper Shelby
2009-02-18 17:38:34
+2
A:
$Rev$ won't work the way you expect it.
If you're using command-line subversion you have svnversion that outputs the latest revision.
With tortoisesvn, it's http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html
Anyway, you should update your build script, so that it merges automatically the lastest revision number.
Johan Buret
2009-02-18 17:51:05
what I did is that I use subwcrev with a tmp file with the revision number. Then I change my beforeBuild action in vs2008 to call the exe and now its working.
Jedi Master Spooky
2009-02-18 18:34:32