[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: Johan Lindh <johan_at_linkdata.se>
Date: 2003-01-08 19:34:14 CET

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

(I'm not the original poster, but this caught my eye)

This would be neat, but the output is
Head revision: 1

What would be really nice is if we could get it all formatted nicely...
The dream might be something like (assuming tag "1.2" and revision 2311):

> svn print "Version %t.%r, built %D %T"
Version 1.2.2311, built 2003-01-08 19:32:00


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:36:50 2003

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

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