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

Re: Newbie question: getting the revision number substituted in the source code

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-01-08 18:30:37 CET

Christian van der Leeden <lists@logicunited.com> writes:
> I want to determine (in the program by variable substitution)
> the current build of the product. Goal is:
> <My tag> - <Revision number> (e.g. R34-187)
> where the revision number is the one from svn.
>
> I've managed to parse the HeadURL in my code to determine
> my tag, but how do I determine the current revision (e.g. 187)?
> I've only seen the variable LastChangedRevision but
> this will only show the revision of the last change of
> that file, not necessarily the HEAD revision.

We don't have a keyword for this, but you could get it from

   $ svn status -Nqu

and substitute it into a file yourself before you build.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 8 19:15:29 2003

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