[PATCH 3 of 5] change the dirstate wlock pattern in localrepo

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Mon Apr 20 16:04:42 CDT 2009


Am Montag, den 20.04.2009, 22:55 +0200 schrieb Benoit Boissinot:
> On Mon, Apr 20, 2009 at 10:49:32PM +0200, Dirkjan Ochtman wrote:
> > On 20/04/2009 21:50, Ronny Pfannschmidt wrote:
> > > i don't understand the orginal reason for doing it this way
> > 
> > Being able to catch LockErrors? Why isn't that needed?
> 
> The idea is to only update the dirstate if we can take the lock. We
> don't have to update the dirstate, it's just nice to do it, so we try :)

That suddenly makes a lot more sense.
So i'll just stop invoking the lock if its taken.

Regards Ronny



More information about the Mercurial-devel mailing list