Jedi Master Spooky
Jedi Master Spooky

Reputation: 5819

Change Revision Number in Subversion, even if the File not change in the commit

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?

Upvotes: 1

Views: 2076

Answers (2)

Johan Buret
Johan Buret

Reputation: 2644

$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.

Upvotes: 3

Harper Shelby
Harper Shelby

Reputation: 16581

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.

Upvotes: 0

Related Questions