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

RE: Re: How to avoid stealing a lock

From: Reedick, Andrew <jr9445_at_ATT.COM>
Date: Fri, 1 Feb 2008 16:49:11 -0600

> -----Original Message-----
> From: Ulrich Eckhardt [mailto:eckhardt_at_satorlaser.com]
> Sent: Friday, February 01, 2008 6:04 AM
> To: users_at_subversion.tigris.org
> Subject: Re: How to avoid stealing a lock
>
> On Friday 01 February 2008, Kota, Sreenivasa ShravanaKumar wrote:
> > How to avoid stealing a lock in SVN ? Is it possible ? If so, How ?
> >
> > I appreciate your help
>
> Well, you can avoid stealing a lock by simply making the person that
> owns the lock release it voluntarily.

Which only works if you're aware of the lock. Ex:
        Monday: I check out foo.java.
        Tuesday: You lock foo.java.
        Wednesday: I try to checkin foo.java...

There was a whole long discussion about this problem a few months ago,
complete with hurt feelings. =)

The only 'guaranteed' way to avoid working on a locked file is for the
file to have 'svn:needs-lock' on it before anyone pulls it into their
workspace.

Even with svn:needs-lock, you can still work on it accidentally if your
editor doesn't respect the 'read only' flag on the "locked" file.

The only way to really guarantee that read-only files stay read-only, is
for the subversion client to act as its own filesystem and intercept
system calls to modify the file. Which isn't going to happen.
(ClearCase dynamic views are the only workspaces I know of that can
protect read-only/locked files.)

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA622

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-01 23:49:47 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.