views:

682

answers:

2

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?

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