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

Re: Replace keywords instead of expanding them

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-05-24 18:35:34 CEST

Peter N. Lundblad wrote:

>On Tue, 24 May 2005, Christoph Hirzel wrote:
>
>
>
>>Does anybody know if it is possible to tell subversion to replace a
>>keyword (e.g. $Revision$) instead of expanding it. Currently the
>>following statement
>>
>>$Revision$
>>
>>is expanded to e.g.
>>
>>$Revision: 144 $
>>
>>What I would need is a replacement to just
>>
>>144
>>
>>
>>
>that's not possible, since svn needs to be able to unexpand the keyword
>again. Say you check out the file and the keyword was expanded to 144.
>Then you edit the file and commit. How could subversion know where the 144
>is that it should replace with a new revision number.
>
>
CVS has a switch that will do that. I've never found it all that useful
myself (if aesthetics is involved, I prefer to have a template file in
the repo and post-process it with a script).

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 24 18:38:32 2005

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.