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

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

From: Christian van der Leeden <lists_at_logicunited.com>
Date: 2003-01-08 17:55:04 CET

Hi,

        we've recently switched from CVS to subversion for our project
development. Works great :-)

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

Thanks for an insight

Christian

----------------------------------------------
Christian van der Leeden
Logic United GmbH
Tel: 089-189488-66 Mob: 0163-3747111
www.logicunited.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Wed Jan 8 17:55:54 2003

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