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

Re: svn commit: r11334 - in trunk/notes: . locking locking/old

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-10-13 14:12:20 CEST

Philip Martin <philip@codematters.co.uk> writes:

> sussman@tigris.org writes:
>
>> + 2. Lock restrictions
>> +
>> + If a file is locked, the owner of the lock has the exclusive
>> + right to change the file's text and properties, to delete the
>> + file, and to move the file.
>
> "move the file"?
>
>> +
>> + If a directory is locked, the owner of the lock has the
>> + exclusive right to change the directory's list of entries and
>> + properties, to delete the directory, and to move the
>> + directory. This lock applies recursively to all files and
>> + directories under the locked directory.
>
> "move the directory"?

Problems arise even without moves, consider editing, adding and then
deciding not to add:

  $ svn lock dir/file1
  $ edit dir/file1
  $ svn lock dir
  $ svn add dir/file2
  $ svn revert dir/file2
  $ svn unlock dir

- Can I lock dir when dir/file1 is locked, or will I have to
  revert/unlock my edit first?
- Do I end up with two locks on dir/file1?
- When I decide to revert/unlock the add, does that remove my lock(s)
  on dir/file1?

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 13 14:23:00 2004

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.