changeset 31040:bcc9d4ebf81b

manifest: enable pager
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:04:26 -0500
parents 9f28424d6483
children 77a252f2544d
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Feb 06 23:04:10 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 23:04:26 2017 -0500
@@ -3484,7 +3484,6 @@
 
     Returns 0 on success.
     """
-
     fm = ui.formatter('manifest', opts)
 
     if opts.get('all'):
@@ -3500,6 +3499,7 @@
             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 @@
     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()