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

Re: Feature request: Keyword $Rev$ with a twist

From: Dave Cridland <dave_at_cridland.net>
Date: 2002-07-31 15:41:00 CEST

On Wed, 2002-07-31 at 14:03, Mats Nilsson wrote:
> Hi
>
> $Rev$ expands to the revision in which the file last changed.
>
> I'm requesting another keyword that expands to the *currently checked out
> revision* for that file. That way it will be easier to get the
> build-revision into the resulting binaries, without having to resort to
> change a file every time.
>
> I guess I could extract that info from the 'svn co' output - but that would
> IMO be less satisfactory, since it would require me to make 'svn co' part of
> the build procedure.

svn info gives you the last changed revision, as well as the current
revision, for any node.

AFAICT, for a directory, the last changed revision is when anything
inside it changed. I use these as build-revisions, and it seems to work
very nicely.

Dave.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 31 15:38:19 2002

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.