Mercurial > hg-stable
comparison setup.py @ 32606:35985d407d49
formatter: add helper to create a formatter optionally backed by file
To make things simple, openformatter() and maybereopen() have no support
for a plain object API. Callers must use the "with" statement.
Unlike cmdutil.makefileobj(), append mode ('ab') isn't supported by these
functions. This is because JSON output can't be simply concatenated. Perhaps
cmdutil.export() will have to build a {filename: [revs...]} map first and
write revs per file.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 27 May 2017 17:40:18 +0900 |
parents | 2dcb3d52ef41 |
children | 331dcf199039 |
comparison
equal
deleted
inserted
replaced
32605:012e0da5b759 | 32606:35985d407d49 |
---|