another idea for directory locking.
From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-10-20 22:28:38 CEST
Hm, lots of discusison on directory locking. Fitz and cmpilato and I
What sort of options do we have?
1. Punt. Don't have any directory locking.
2. Support 'depth 0' directory locking only. That is, the ability to
3. Support both 'depth 0' and 'depth infinity' locking, somehow.
Regarding option #1: Mark Phippard has recommended this, if only
The counterargument, though, is that users are going to want to lock
Up till now, we've all thrown our hands in the air at the idea of
But: who says recursive locks need to be done via inheritance?
cmpilato has an interesting set of ideas:
* Add support for file locking.
These are represented as lock-tokens in the WC. The UI for
* Add support for depth-0 locks on directories.
Also represented as a lock-token in the WC. We're still in the
* Make 'svn lock -R dir' automatically take out a depth-0 lock on
We get a reasonable emulation of 'recursive locking' this way,
* When talking to a DAV client, honor both depth-0 and
Again, we emulate a depth-infinity lock by performing a depth-0
What do others think of this approach?
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.