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

Re: How to define a keyword similar to "id" but without author?

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-13 20:29:58 CET

On Mar 13, 2006, at 20:06, Zsolt wrote:

> I would like to define a new keyword that should be nearly the same
> like
> "id" but is shouldn't contain the author.
>
> I also want to use "id" as keyword thus this is not an option to
> modify
> "id".

If you want to use this modified $Id$ value within your source code
for some purpose, then the usual way would be to use $Id$ as is and
then post-process it in your source code to remove the author part.

If you're just after having it look that way when you open your
source code files, then I don't think that's going to be possible,
short of modifying the Subversion source code and implementing it.

> Additionally I would like to add that property to all *.jsp files.

Adding a property to all files matching a certain pattern is done
using auto-props:

http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.4

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 13 20:30:50 2006

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.