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

Re: Locking in Subversion

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 10 Mar 2010 08:41:39 -0500

I have a pre-commit hook script that allows you to do just that. It will
fail commits unless the properties you specified on the files are set. You
could do something like this:

[property All word docs in project "A" need svn:needs-lock set]
match = projectA/docs/.*
property = svn:needs-lock
type = regex
value = .*

This is a Perl hook and you need to install the Config::IniFiles module for
it to work.

You can get my hook from: http://dl.dropbox.com/u/433257/hooks.zip

On Tue, Mar 9, 2010 at 11:20 AM, <Sanjay_Patil_at_johnlewis.co.uk> wrote:

>
> Hi Guys,
>
> Please can you advise me on below.
>
> I have been asked to configure Subv in a way that all word docs/newly added
> docs are configured for needs-lock in a particular projecy (say Project A)
> under a repository.
>
> Initially I tried to implement this by adding below property to my Subv
> config file
>
> *.doc = svn:needs-lock
>
> But this affects other projects under different repo as the settings is
> machine specific.
>
> Is there a way, I can add a property to apply needs-lock to files under a
> specific project in a repo. As there are 100 of such word docs, I wanted to
> avoid setting it at each file level.
>
> Please let me know if you need any more information on this.
>
> **********************************************************************
> This email is confidential and may contain copyright material of the John Lewis Partnership.
> If you are not the intended recipient, please notify us immediately and delete all copies of this message.
> (Please note that it is your responsibility to scan this message for viruses). Email to and from the
> John Lewis Partnership is automatically monitored for operational and lawful business reasons.
> **********************************************************************
>
> John Lewis plc
> Registered in England 233462
> Registered office 171 Victoria Street London SW1E 5NN
>
> Websites: http://www.johnlewis.com http://www.waitrose.com http://www.greenbee.comhttp://www.johnlewispartnership.co.uk
>
> **********************************************************************
>
>

-- 
David Weintraub
qazwart_at_gmail.com

picture
Received on 2010-03-10 14:42:10 CET

This is an archived mail posted to the Subversion Users mailing list.