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

Re: locking directories

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-05-02 14:14:29 CEST

On May 2, 2006, at 13:33, Sebastien LEDUC wrote:

> it seems svn's lock command works only for files and not for
> directories:
> svn lock file://myrepos/mydirectory
> svn: 'mydirectory' is not a file in filesystem '/myrepos/db'
>
> I am looking for a way to temporarily forbid any commit from other
> people in a particular directory (and all its subdirectories).

You could write a pre-commit hook preventing modifications to that
directory.

Here's an example which blocks any changes to any directory called
"tags"; you could use it as a basis for your script.

http://svn.haxx.se/users/archive-2004-08/0556.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 2 14:15:43 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.