[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn:keywords last changed checked out directory revision number

From: Stefan <steveking____at_tigris.org>
Date: 2004-03-30 19:03:17 CEST

Adam Gibson wrote:
> How do most people deal with including a revision number in their apps?
> The svn:keywords Rev will not work since that is specific to that one
> file which might not have changed. The only way it would work for that
> purpose is if there was a TopLevelRev svn:keyworks property or something
> like that which always indicated the currently checked out top level
> directory revision.
[snip]

You can use the svnversion tool to get the highest last-commit revision.

If you're working on windows, you can also use the SubWCRev.exe tool
TortoiseSVN uses (tortoisesvn.tigris.org/download.html). It takes a file
(e.g. version.in), checks the working copy for the highest last-commit
revision and then creates an output file (e.g. version.h) where all
$WCREV$ strings in the "in" file are replaced with that revision number.
TortoiseSVN uses this tool so that the last number in the version
information represents the last-committed revision number.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 30 19:37:30 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.