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

Re: Way to get current revision as keyword...?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-12-04 18:27:10 CET

Theo Van Dinter wrote:
> 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?

FAQ.

http://subversion.tigris.org/project_faq.html#version-value-in-source

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 4 18:30:09 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.