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

Re: Can I have a svn:keywords value set default to the whole project?

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Sun, 8 Jun 2008 10:31:22 -0700

On Sun, Jun 8, 2008 at 1:33 AM, Steven Woody <narkewoody_at_gmail.com> wrote:
> I am surprised that I have to manually set svn:keywords on every new
> file in my project? Is there a better method?
> Thanks.
> -
> narke

In short, no.

You can edit the (per user) Subversion configuration and turn on
auto-props. That will allow you have any added files automatically
get whatever default properties you want.

This is not an ideal solution because there's no way to associate this
with a repository: it's a per-user setting - all users need to make
sure their config (UNIX: ~/.subversion/config, Win:
%APPDATA%\Subversion\config) file is edited correctly.

On a per repository basis, you could add a pre-commit hook script that
checks added files for required properties and refuses the commit if
they are not present. This can help to keep things consistent, but I
also think having the ability to set these by repository would be

- Kevin

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-08 19:31:50 CEST

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.