RFC: Fix for issue 1827 (v2)

Sune Foldager cryo at cyanite.org
Tue Feb 16 03:32:54 CST 2010


On 16-02-2010 10:14, Sune Foldager wrote:
> Another possibility is to extend locks to accept "on-release" actions
> (closures), so commitctx can add such an action to the lock (with new
> functions like wlockaddaction...

I think this idea is actually somewhat intriguing... outer function
(commit) does wlock = self.wlock()... call commitctx... wlock.release()

Inner does lock... work.... add hook to on-wlock-complete...done

Of course, if this is its only use, it might be a bit overkill :-p.

> gotta love that we can't use _, so easy to read ;-)).

Sorry for that rant :).

/Sune


More information about the Mercurial-devel mailing list