[PATCH hglib] Added context manager protocol methods to client.py, so that client objects can be used with the 'with'

Matt Mackall mpm at selenic.com
Mon Nov 28 17:45:10 CST 2011


On Mon, 2011-11-28 at 11:07 -0500, Jeff Laughlin wrote:
> # HG changeset patch
> # User Jeff Laughlin <jmlaughlin at integrated-informatics.com>
> # Date 1322060257 18000
> # Node ID ec2a4aa8832e06b4c38390f5f4bf0f4bf9deb395
> # Parent  317a25e6c619ed59c94d583f96d3763ccc8b47e4
> Added context manager protocol methods to client.py, so that client objects can be used with the 'with'
> statement and will be closed automatically when the 'with' context exits.

Nice, queued.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list