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

Re: Keyword expansion for $Log$

From: Bas Mevissen <ml_at_basmevissen.nl>
Date: 2004-08-24 01:18:00 CEST

On Mon, 2004-08-23 at 23:01, Guido Ostkamp wrote:

> Why is it that complicated when it could be so easy to have a $Header$ to
> stay compatible to RCS and probably CVS?
>
> Also the manual says you have to turn on propsets for each file like in
>
> svn propset svn:keywords "Id" file
>
> to turn on expansion for "Id". Furthermore you seem to have to checkout
> and checkin again to make this work, even if the file had a $Id$ label in
> its text earlier.
>

And it is a good thing that you need to do that explicitly. One can make
it the default for certain file types by adding

[miscellany]
enable-auto-props = yes

[auto-props]
*.c = svn:keywords "Id"

to the configuration file "~/.subversion/config" of EVERY client that
has access to the repository. It will set the keyword property on all
newly added files. (I'm not sure if this also goes for modified files).

So you have to change all existing files by hand or script.

AFAIK, you cannot make such properties the default on the server with a
configuration option. You can use hooks of course.

Regards,

Bas.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 24 01:14:55 2004

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.