Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 37597:d110167610db
formatter: carry opts to file-based formatters by basefm
This makes it slightly easier to port "hg export" to formatter.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 12 Apr 2018 23:25:58 +0900 |
parents | d658cbef8041 |
children | 42a91897f090 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Apr 12 23:24:33 2018 +0900 +++ b/mercurial/cmdutil.py Thu Apr 12 23:25:58 2018 +0900 @@ -2231,7 +2231,7 @@ os.makedirs(os.path.dirname(filename)) except OSError: pass - with formatter.maybereopen(basefm, filename, opts) as fm: + with formatter.maybereopen(basefm, filename) as fm: _updatecatformatter(fm, ctx, matcher, path, opts.get('decode')) # Automation often uses hg cat on single files, so special case it