diff mercurial/pycompat.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 c63ab0524db7
children 0f6d6fdd3c2a
line wrap: on
line diff