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

Re: [TSVN] how should the UI look like

From: Shivan <Shivan_at_Freenet.de>
Date: 2005-04-08 20:08:21 CEST

SteveKing schrieb:

> Hi,
>
> I'm currently working on the new features in Subversion 1.2. And as
> you may have already heard, the main feature is locking.
>
> So I need your ideas on how to implement this. Sure I have own ideas,
> but they just don't feel right.
>
> Ok, so here goes what we have to do:
>
> - files can be locked (surprise).
> - Two new context menu entries "lock" and "unlock" will be implemented
>
> Now comes the problem:
> We can attempt to lock the selected files, but that can fail if e.g.
> another user already has one of those selected files locked. Not a big
> deal really. But now, the user can 'steal' the lock, i.e. just
> override the other users lock.
>
> So, how should we do this in an UI way?
> - try to lock, throw an error if someone else already has the lock,
> don't allow to override the lock at all.
> - before attempting to lock, ask the user if he want's to override a
> maybe existing lock and then just force the lock no matter what
> - Allow to redo the lock from the progress dialog once a lock has
> failed and this time just steal the lock
> - ???
>
> Oh, and the same applies to removing a lock:
> you can remove a lock even if you're not the owner of the lock by
> 'breaking' the lock.
>
> So please, think of how the UI should handle this situation and make
> suggestions.
>
> Stefan
>
I think the third variant would be best. Try lock -- if it doesn't work
tell the user and ask if he want's to force the lock.

When removing a lock I think it could be the same. If the file isn't
locked by the user itself there should popup a message and tell the user
he's not the owner of the lock and ask if he wants to break the lock...

Will there be a new overlay icon to show locked files by the user itself
(ie normal/gold lock?) and another by other users (ie red lock?)?

Shivan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Apr 8 20:08:37 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.