comparison mercurial/hook.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 ea1fec3e9aba
children a1259e502bdf
comparison
equal deleted inserted replaced
29881:12f8bef59bfa 29882:307b20e5e505