changeset 31049:d6a703af975b

cat: migrate to modern pager API
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 22:57:52 -0500
parents 3c22ad83868b
children ed0023e47412
files hgext/pager.py mercurial/commands.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/pager.py	Sun Feb 19 15:09:41 2017 -0500
+++ b/hgext/pager.py	Mon Feb 06 22:57:52 2017 -0500
@@ -110,4 +110,4 @@
         extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
     extensions.afterloaded('color', afterloaded)
 
-attended = ['cat', 'diff', 'export', 'glog', 'log', 'qdiff']
+attended = ['diff', 'export', 'glog', 'log', 'qdiff']
--- a/mercurial/commands.py	Sun Feb 19 15:09:41 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 22:57:52 2017 -0500
@@ -1417,6 +1417,7 @@
     ctx = scmutil.revsingle(repo, opts.get('rev'))
     m = scmutil.match(ctx, (file1,) + pats, opts)
 
+    ui.pager('cat')
     return cmdutil.cat(ui, repo, ctx, m, '', **opts)
 
 @command('^clone',