diff mercurial/commands.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 8bb3899a0f47
children 7a9c905e51f9
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Apr 12 23:24:33 2018 +0900
+++ b/mercurial/commands.py	Thu Apr 12 23:25:58 2018 +0900
@@ -1318,7 +1318,7 @@
         fntemplate = ''
 
     if fntemplate:
-        fm = formatter.nullformatter(ui, 'cat')
+        fm = formatter.nullformatter(ui, 'cat', opts)
     else:
         ui.pager('cat')
         fm = ui.formatter('cat', opts)