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

Re: svn commit: r14031 - trunk/subversion/clients/cmdline

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-04-10 20:11:21 CEST

On Apr 10, 2005, at 1:22 PM, Greg Hudson wrote:

> On Sun, 2005-04-10 at 13:16, Scott Palmer wrote:
>
>> "The repository doesn't care" - you can commit changes without having
>> the file locked.
>
> Correct, in the sense that svn:needs-lock will not cause the server to
> enforce that you have the file locked in order to commit to it. But
> someone else having the file locked will cause the server to enforce
> that you have to break or steal the lock in order to commit to it.

Ahhhhhhh.

So needs-lock is a hint to the client that you should get a lock if you
want to avoid someone else making a change in parallel. If you do get
the lock, then the server will not allow commits by others, but if
others don't pay attention to the needs-lock they still are able to
make a change locally (with some effort to by-pass read-only
attributes, assuming the client was aware of svn:needs-lock) that they
might have to throw away.

I think I get it now. Thanks.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 10 20:12:27 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.