[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-05-07 20:27:12 CEST

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? :-)

---------------------------------------------------------------------
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:34:44 2004

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.