Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 32605:012e0da5b759
formatter: add option to redirect output to file object
Commands like 'export' have --output=OUTFILESPEC option, so we need a way
to write formatter output optionally to a file.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Jan 2015 18:04:44 +0900 |
parents | bb18728ea617 |
children | 9fcb6df413c9 |
line wrap: on
line diff
--- a/mercurial/ui.py Wed May 31 10:35:10 2017 -0700 +++ b/mercurial/ui.py Sun Jan 18 18:04:44 2015 +0900 @@ -263,7 +263,7 @@ (util.timer() - starttime) * 1000 def formatter(self, topic, opts): - return formatter.formatter(self, topic, opts) + return formatter.formatter(self, self, topic, opts) def _trusted(self, fp, f): st = util.fstat(fp)