Patchwork [12,of,19,pager] manifest: enable pager

login
register
mail settings
Submitter Augie Fackler
Date Feb. 19, 2017, 11:13 p.m.
Message ID <8068b33f645ab0e7770f.1487545983@imladris.local>
Download mbox | patch
Permalink /patch/18666/
State Accepted
Headers show

Comments

Augie Fackler - Feb. 19, 2017, 11:13 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486440266 18000
#      Mon Feb 06 23:04:26 2017 -0500
# Node ID 8068b33f645ab0e7770f709e9b9d8dd24f67d762
# Parent  fbd10f8b093b23fb9dba972b5a05c7bcdfb904f2
manifest: enable pager

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3484,7 +3484,6 @@  def manifest(ui, repo, node=None, rev=No
 
     Returns 0 on success.
     """
-
     fm = ui.formatter('manifest', opts)
 
     if opts.get('all'):
@@ -3500,6 +3499,7 @@  def manifest(ui, repo, node=None, rev=No
             for fn, b, size in repo.store.datafiles():
                 if size != 0 and fn[-slen:] == suffix and fn[:plen] == prefix:
                     res.append(fn[plen:-slen])
+        ui.pager('manifest')
         for f in res:
             fm.startitem()
             fm.write("path", '%s\n', f)
@@ -3516,6 +3516,7 @@  def manifest(ui, repo, node=None, rev=No
     mode = {'l': '644', 'x': '755', '': '644'}
     ctx = scmutil.revsingle(repo, node)
     mf = ctx.manifest()
+    ui.pager('manifest')
     for f in ctx:
         fm.startitem()
         fl = ctx[f].flags()