[PATCH 12 of 19 pager] manifest: enable pager
Augie Fackler
raf at durin42.com
Sun Feb 19 18:13:03 EST 2017
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1486440266 18000
# Mon Feb 06 23:04:26 2017 -0500
# Node ID 8068b33f645ab0e7770f709e9b9d8dd24f67d762
# Parent fbd10f8b093b23fb9dba972b5a05c7bcdfb904f2
manifest: enable pager
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()
More information about the Mercurial-devel
mailing list