You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Joshua Varner <jl...@gmail.com> on 2005/11/01 00:16:27 UTC

Re: locking a directory

On 10/31/05, Madan U Sreenivasan <ma...@collab.net> wrote:
> On Mon, 2005-10-31 at 20:30, Sebastien LEDUC wrote:
> > Hi,
> > the lock command seems to allow locking of files, but not of directories.
> hmmm, the 'svn help lock' command says...
> -------------------------------------------------------
> lock: Lock working copy paths or URLs in the repository, so that
> no other user can commit changes to them.
> -------------------------------------------------------
> it doesnt specifically mention files or dirs.
>
> I tried locking files with no effect (neither using the wc path nor
> using the url)...
> > What I would like to do is to temporary lock a branch URL to prevent
> > others from committing to that branch while merging some work into it.
> >
> > Any idea of how to achieve this?
> let me see if I can find some way out for you.
>
"Subversion's locking feature is currently limited to files only—it's
not yet possible to reserve access to a whole directory tree."

from
http://svnbook.red-bean.com/nightly/en/svn.advanced.locking.html#svn.advanced.locking.lock-communication

Josh