manifest: enable pager
authorAugie Fackler <augie@google.com>
Mon, 06 Feb 2017 23:04:26 -0500
changeset 31060 bcc9d4ebf81b
parent 31059 9f28424d6483
child 31061 77a252f2544d
manifest: enable pager
mercurial/commands.py
--- 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()