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

Re: Removing a needs-lock file

From: Brian W. Fitzpatrick <fitz_at_collab.net>
Date: 2005-04-27 05:48:57 CEST

On Apr 26, 2005, at 9:50 PM, D.J. Heap wrote:

> Should 'svn rm' require the user to lock the file if it has
> svn:needs-lock set?
>
> It kind of seems like it should -- but an 'svn rm' command is not
> quite the same as discouraging an external program from
> modifying/deleting the file so I'm not sure what the intended behavior
> is.

Well, to enforce that would require a somewhat different line of coding
than we've currently been using...

In any case, I think it's OK that 'svn rm' can delete a file if
svn:needs-lock is set. The purpose of svn:needs-lock is to act in an
advisory capacity so as to prevent more than one person from making
changes to an unmergable file: Your editor should notice that the file
is read-only and notify you of this (then you can 'svn lock' the file
and go about your business).

If you 'svn rm' a file with svn:needs-lock and another user actually
has a lock on the file, your commit will fail. If you 'svn rm' a file
and no one else has a lock on the file, the nothing's lost.

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 27 05:50:50 2005

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.