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

Enforcing svn property needs-lock for a repo subset

From: David Aldrich <david.aldrich_at_eu.nec.com>
Date: Fri, 10 Jul 2009 09:24:10 +0100

Hi

I'm aware that this has been discussed before, but I have a slight twist on the usual question...

We want to enforce the needs-lock property on Word documents added to a svn repository.

I have read in the svn manual that this should not be done using a pre-commit hook.

A possibility is to use the svn CheckProperty hook which could refuse commits of .doc files lacking needs-lock. However, it would be better to silently add the property automatically.

The obvious answer is to use the client-side config file:

*.doc = svn:mime-type=application/msword;svn:needs-lock=*

The twist for us is that we only want to enforce this for some of our repositories (we use one repo per project), but we push out a common config file to all users using a Windows script.

Is it possible to modify the config file line above to apply to a subset of repos?

Best regards

David

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2369611

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-10 10:25:12 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.