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

Re: set svn:need-lock by default everyfile

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-04-12 15:49:23 CEST

On Apr 11, 2006, at 09:53, JIRAT SRISAWAT wrote:

> Can we set every new create file in subversion to be read only and
> need to lock before edit by default?
> I would like to do the same things as VSS that we can not edit any
> file that we didn't lock it.
>
> now I can do only set svn:need-lock recursive to my working folder
> everytime I add new file...
> can we do it by default ?

* In your config file:
        * In the "miscellany" section:
                * set "enable-auto-props = yes"
        * In the "auto-props" section:
                * set "* = svn:needs-lock=true"
* Write a pre-commit hook that rejects commits of any files that
don't have this property set this way.

Read the book if you need more info on these topics:

http://svnbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 12 15:51:44 2006

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.