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

Re: Re: Replace keywords instead of expanding them

From: Timo Kankare <timo.kankare_at_kolumbus.fi>
Date: 2005-05-25 22:03:53 CEST

On Tue, May 24, 2005 at 04:32:54PM +0200, André Pönitz wrote:
> Unless it's already on the agenda I'd like to ask for a new feature:
> Make that expansion user-definable (within reasonable limits).
>
> As it stands right now, the expanded string can not be manipulated
> by plain C preprocessor magic. This would be helpful in certain
> settings and could e.g. be achieved by expanding the $Revision$
> tag to e.g. "#define SVN_REVISION xxx". This is un-expandable
> pretty much the same way the "$Revision: xxx $" string is.

I used some time PRCS (http://prcs.sourceforge.net/) which has Format
keyword for this situation.

----
/* $Format: "#define SVN_REVISION $Revision$" $ */
#define SVN_REVISION xxx
----
Format keyword would not change, but the next line is replaced with
the the text in the quotes. Keywords in quotes are replaced without $
and keyword name.
This would be nice feature in subversion...
Timppa
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 25 22:05:53 2005

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