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

Way to get current revision as keyword...?

From: Theo Van Dinter <felicity_at_kluge.net>
Date: 2004-12-04 18:23:29 CET

I have some code which wants to display the current version of the software,
including the SVN revision that the code comes from. We currently use:

  push(@EXTRA_VERSION, ( 'r' . qw{$LastChangedRevision: 109718 $ updated by SVN}[1] ));

such that @EXTRA_VERSION gets "r109718" added to it. However, I'd
really like the version to be the actually revision number of the tree
(r109813), not the revision number for the last time that specific piece of
code was modified.

ie: the keyword would be updated upon checkout, update, export, etc.

There doesn't seem to be a way to do this without a post-co/export/etc script
to mangle that line. Am I missing something blazingly obvious, or is this
a RFE?

Thanks. :)

-- 
Randomly Generated Tagline:
But let me tell you, the slim lazy Homer you knew is dead.  Now I'm a
 big fat dynamo.
 
 		-- Homer Simpson
 		   King-Size Homer

  • application/pgp-signature attachment: stored
Received on Sat Dec 4 18:26:04 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.