mercurial/commands.py
changeset 32540 f4cd4c49e302
parent 32516 37d70ba1d9d1
child 32541 3b569745af6c
--- a/mercurial/commands.py	Thu May 25 21:28:08 2017 +0900
+++ b/mercurial/commands.py	Sat May 27 18:50:05 2017 +0900
@@ -1363,9 +1363,10 @@
     """
     ctx = scmutil.revsingle(repo, opts.get('rev'))
     m = scmutil.match(ctx, (file1,) + pats, opts)
+    fntemplate = opts.pop('output', '')
 
     ui.pager('cat')
-    return cmdutil.cat(ui, repo, ctx, m, '', **opts)
+    return cmdutil.cat(ui, repo, ctx, m, fntemplate, '', **opts)
 
 @command('^clone',
     [('U', 'noupdate', None, _('the clone will include an empty working '