[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: SteveKing <steveking_at_gmx.ch>
Date: 2005-04-13 20:59:07 CEST

Ben Collins-Sussman wrote:
> The sentence you just wrote above -- "users could see that a file needs
> to be locked" -- is *exactly* the reason the svn:needs-lock property
> exists. If you're thinking about creating a new icon overlay that
> means, "you should lock this file before editing", then you should make
> it into a 1-to-1 correspondence with the existence of svn:needs-lock.
>
> So your criteria for showing this new overlay would be:
>
> - the file is versioned && file has svn:needs-lock
>
> That's all you need.

I know that. But: reading the properties of a file is an expensive
function call (performance wise, if you have to do it for many, many
files very fast). So that's not really an option for TSVN because
overlays can't take long to show them, or the explorer would slow down
remarkably.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
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:00:11 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.