[PATCH] {RFC} commands: switch to ctxmanager in phase

Bryan O'Sullivan bos at serpentine.com
Mon Jan 11 17:40:35 CST 2016


On Mon, Jan 11, 2016 at 3:34 PM, Bryan O'Sullivan <bos at serpentine.com>
wrote:

> +        with util.ctxmanager(repo.lock, repo.translambda('phase')) as c:
>

I forgot the patch that introduces translambda; it simply defers
repo.transaction with a lambda because that pattern is used so heavily.

This patch series is several dozen long, all very simple transformations of
this sort. I think the introductory patch should be enough to get
conversation started :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20160111/33883edb/attachment.html>


More information about the Mercurial-devel mailing list