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

Re: [TSVN] Locking overlay

From: Andrew Vaughan <ajv-lists_at_netspace.net.au>
Date: 2005-04-11 19:39:15 CEST

Hi Steve
On Mon, 11 Apr 2005 10:50 pm, SteveKing wrote:
> On Apr 11, 2005 1:30 AM, Simon Large <slarge@slarge.plus.com> wrote:
> > The terminology is a bit confusing. Does 'locked' mean that the
> > file is read-only and you have to get an access key from the
> > repository, or does it mean that you have acquired a lock on the
> > file so that only you can change it?
>
> That depends on how we would implement that. We could show a 'locked'
> overlay if the file is read-only (i.e. locked by others) or we could
> show the overlay if a lock-owner is assigned (locked by either
> yourself or others).
>
Since you can only show a limited number of overlays, I think the most
important one would be svn:needs-lock.

> > It would be useful to indicate that you are holding a key/lock, and
> > you should release it if you are not using it. This use would take
> > precedence over the in-subversion overlay, so after you commit
> > changes, your locked files show up as needing to be released.
>
> That's not possible. You can't check to whom a lock belongs until you
> contact the repository. Even if you could check the lock-owner
> (username), that wouldn't help: a user can have multiple working
> copies (e.g. one in the office and one at home), so the locks would
> still be different.
>
The wc needs to know which locks it (thinks it) holds. eg to know which
files should be read-only. svn status is supposed to report this for
command line users. (Sorry I don't have 1.2rc installed atm to check).

This info can get outdated, if people break/steal locks, but it is the
best you can do without querying the server and probably accurate most
of the time.

> > It would also be useful to have an icon indicating that you do not
> > have a key/lock, and you need to acquire one in order to access
> > this file. This is almost identical to the above case, but with the
> > opposite sense.
>
> That would mean showing an overlay if a file is read-only. Easy to
> implement, and fast...

I you don't do anything else, please do at least this much. Some
applications will happily allow you to start editing read-only files.
The problem comes when you save them :-).
>
> Stefan

-- 
Cheers
Andrew V.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Apr 11 19:36:55 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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