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

Re: Enforcing svn property needs-lock for a repo subset

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 10 Jul 2009 07:05:33 -0400

On Fri, Jul 10, 2009 at 04:24, David Aldrich<david.aldrich_at_eu.nec.com> wrote:
> 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.

Do you have files in your other repositories which have .doc
extensions but *aren't* MS Word documents? I can't imagine a situation
where you wouldn't want to set the mime-type and needs-lock on an MS
Word file.

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

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