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

Re: [PATCH] FAQ: getting the working copy revision into the source

From: Scott Lawrence <slawrence_at_pingtel.com>
Date: 2004-05-07 21:00:36 CEST

On Fri, 2004-05-07 at 14:27, Ben Collins-Sussman wrote:
> On Fri, 2004-05-07 at 13:15, Scott Lawrence wrote:
> > Appended below is a FAQ for the question "How do I get the revision
> > number into my source?"
> >
>
> Actually, that's not exactly the FAQ...
>
> The FAQ that comes up once a month is: "Why doesn't the $Revision$
> keyword do what I want? It expands to the file's last-changed revision,
> but I want something that will expand to the file's current revision."
>
> Then our standard reply is something like:
>
> 1. A keyword which expands to the working revision is fundamentally
> different than the other keywords; every update would require us to
> hunt down this keyword throughout the whole working copy, even on files
> that weren't updated. A very bad idea.
>
> 2. Use 'svnversion' in your build system instead (which you've
> explained already in your patch).
>
> Scott, can you make another pass at this FAQ patch? :-)

sure... stay tuned.

-- 
Scott Lawrence
Consulting Engineer
Pingtel Corp.   
sip:slawrence@pingtel.com
+1.781.938.5306 x162
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 8 01:59:58 2004

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