[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: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Wed, 10 Mar 2010 08:15:47 +0000

On 9 March 2010 16:20, <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.
>
>
Put a pre-commit hook that checks for any attempts to commit a .doc file to
the repo where that .doc file does not have the svn:needs-lock property set
and bombs out the commit with an error stating that the property needs to be
set for .doc files and pointing people to a how-to doc explaining how to
setup their autoprops config to do this for them

-Stephen

> 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
>
> **********************************************************************
>
>

picture
Received on 2010-03-10 09:16:20 CET

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.