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

Re: Locking a whole repository

From: Marko Kaening <mk362_at_mch.osram.de>
Date: 2007-06-28 13:18:05 CEST

Hi,

this question came up some time ago, or comes up regularily. I just send
a piece from an answer given by Ben Collins-Sussman <sussman@collab.net>
a while ago:

--- snip ---

> If so is it possible to create a repository that will only allow locked
> access (i.e. you checkout with a lock or you don't check out at all)?

Yes, you can certainly write a pre-commit hook script to enforce this.
The
script would examine all of the paths someone is attempting to commit, and
make sure that every one of them is locked...

Have you read the documentation on svn locking yet?

  http://svnbook.red-bean.com/nightly/en/svn.advanced.locking.html

The recommended procedure is to specifically mark un-mergeable files as
"needing a lock". This causes the files to have read-only permission in
everyone's private sandboxes. When you lock the file, it becomes
read-write.

--- snip ---

Hope that helps,
Marko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 28 13:18:34 2007

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.