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