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

Re: Current Updated Revision Number

From: Bill Comisky <bcomisky_at_pobox.com>
Date: 2003-09-06 00:23:36 CEST

On Fri, 5 Sep 2003, Peter Childs wrote:

> On Fri, 5 Sep 2003 e.huelsmann@gmx.net wrote:
> > you might use the svnversion command to do this:
> >
> > compile using gcc -DVERSION=`svnversion .`
> >
> > There currently is no keyword which is substituted with the output from
> > svnversion.
> Super a keyword might be useful one day however.... maybe a TODO
> is in order.
> Peter Childs

I didn't see any issues pertaining to the single-revision-working-copy
revision keyword. I've seen this pop up on the list several times,
and personally am interested in this feature. Would it be reasonable to
file an "enhancement" issue for this?

The 'svnversion' workaround isn't as attractive when you can't embed its
output in a file as part of a build process (i.e. when there is no build
process, for non-compiled languages or other).


[original question below for reference]

> > > How do I get last revision number for my repository. The keywords
> > > only seam to handle when that file was last changed. What I would like to
> > > do is see the revision number on the repository and then use it in my
> > > code to see who which version a user is using.
> > > So I can then commit, compile, and have my source code
> > > auto-versioned...
> > >
> > > Is this possible and if so how?
> > >
> > > Peter Childs

Bill Comisky
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 6 00:25:15 2003

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.