On Tuesday 09 March 2010, sanjay_pa...@johnlewis.co.uk wrote: > 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.
You'll also have to activate auto props in general, the above alone doesn't do anything. Further, it only affects newly added files. Concerning the problem that it also affects different repositories, I'm not sure there is anything you can do. IMHO that setting makes sense regardless of the repository. > 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. Assume you're using TortoiseSVN (other clients might provide different ways to set properties recursively), go to the properties of the parent directory. There, add the needs-lock property and apply it recursively. Then, in the commit dialog, just sort the files by their type and revert the change on all non-doc files. On a Unix shell, you could do something like find -name \*\.doc -exec ... In any case, you could install a server-side hook script that makes sure the property is present on all *.doc files. Uli -- ML: http://subversion.tigris.org/mailing-list-guidelines.html FAQ: http://subversion.tigris.org/faq.html Docs: http://svnbook.red-bean.com/ Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932 ************************************************************************************** Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932 ************************************************************************************** Visit our website at <http://www.satorlaser.de/> ************************************************************************************** Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden. E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich. **************************************************************************************