On 9 March 2010 16:20, <sanjay_pa...@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 > > ********************************************************************** > >
<<image/gif>>