comparison mercurial/osutil.c @ 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 e60c492a0d9b
children 301ef65e8ebb
comparison
equal deleted inserted replaced
29881:12f8bef59bfa 29882:307b20e5e505