# HG changeset patch # User Augie Fackler # Date 2017-02-07 03:57:52 # Node ID d6a703af975b25c1b428b09cc10170be4fc8379d # Parent 3c22ad83868b018721737a1c0923fe5eb1068b73 cat: migrate to modern pager API diff --git a/hgext/pager.py b/hgext/pager.py --- a/hgext/pager.py +++ b/hgext/pager.py @@ -110,4 +110,4 @@ def uisetup(ui): extensions.wrapfunction(dispatch, '_runcommand', pagecmd) extensions.afterloaded('color', afterloaded) -attended = ['cat', 'diff', 'export', 'glog', 'log', 'qdiff'] +attended = ['diff', 'export', 'glog', 'log', 'qdiff'] diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1417,6 +1417,7 @@ def cat(ui, repo, file1, *pats, **opts): 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',