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

Re: How to find out if I own a lock?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-04-13 21:17:22 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> Ah, so it seems that you want to implement inverse logic.
>
> The logic should be:
>
> if (versioned && has-no-lock-token)
> if (svn:needs-lock is present)
> show "should lock" overlay
>
> But you want to do
>
> if (versioned && has-no-lock-token)
> if (readonly)
> show "should lock" overlay.
>
> But as cmpilato pointed out, those logics aren't equivalent. A file
> can be read-only for other reasons besides the existence of
> svn:needs-lock. Is this going to cause problems? I forsee lots of
> false positives here. Is it worth the performance tradeoff?

Steve, is there any way you can quantify the performance hits we're
talking about? Tweak TSVN to do the property checks, and see how it
really affects things, ya know?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 13 21:21:41 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.