Patchwork [07,of,19,pager] files: enable pager

login
register
mail settings
Submitter Augie Fackler
Date Feb. 19, 2017, 11:12 p.m.
Message ID <a7e54c6d8835bcda8aed.1487545978@imladris.local>
Download mbox | patch
Permalink /patch/18662/
State Accepted
Headers show

Comments

Augie Fackler - Feb. 19, 2017, 11:12 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486440168 18000
#      Mon Feb 06 23:02:48 2017 -0500
# Node ID a7e54c6d8835bcda8aed14284046be7489a460a2
# Parent  22e4e9bdff5ebdd7feabb9ed7a1ff6b72c0fe7e8
files: enable pager

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2084,6 +2084,7 @@  def files(ui, repo, *pats, **opts):
     fmt = '%s' + end
 
     m = scmutil.match(ctx, pats, opts)
+    ui.pager('files')
     with ui.formatter('files', opts) as fm:
         return cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos'))