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

Re: Get exclusive lock

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Mon, 3 Mar 2008 14:02:34 +0100

On Monday 03 March 2008, Oliver Fabelo wrote:
> I have some colleagues who work with vss and I want change to svn (they are
> losing data xD). They use binary files (word documents, crystal reports,
> .), and I want that they can work with exclusive locks in svn like vss
> works .
> [...]
> A user, for oversight, can open a file and start to write (the file is in
> read-only mode), he forgets "get lock" the file, and when he finishes, he
> couldn't write in the file.

I know that some programs actually check if a file is read-only when opening
it and alert the user that they can't edit it. Further, even if you are not
using such a program you can still claim the lock on the file even if you
have already opened it and made changes to it. There, I know at least one
program which still refuses to save to the now-writable file, so you will
have to write to a different file first and then copy it over. All of this is
not a problem but merely an annoyance unless someone changed it before you.

> I want that a user when opens a file (it's with svn:needs-lock property),
> it displays a message saying that the file is read-only and requires "get
> block". This is the only thing which my colleagues do not want to go svn.

You could rebind all relevant file types to some kind of proxy that first
checks if the file is readable before then launching the real editor. I'm not
sure I would like that though, because it means that users who only want to
read a document will then first lock the file even though they don't need it
and of course they will also forget to unlock it afterwards.

I suggest you ask them for a plan where forgetting things does not in any way
cause any inconvenience. I'm pretty sure that no such plan can be made that
is flawless, human errors can't be auto-corrected without severely
restricting educated choice.

> I always say them that each file needs "get lock" for writing in it, but
> they say me that they can forget do it.

What's the difference to the current state that uses VSS?

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Michael Wöhrmann, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-03 14:03:09 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.