Mercurial > hg
diff mercurial/cmdutil.py @ 29882:307b20e5e505
formatter: add context manager interface for convenience
And port "hg files" to test it.
As you can see, extra indent is necessary to port to this API. I don't think
we should switch every fm.formatter() call to "with" statement.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 29 Aug 2016 00:00:05 +0900 |
parents | 2cec6eaf3610 |
children | fa5e4f58dfbc |