[PATCH 08 of 19 pager] grep: enable pager

Augie Fackler raf at durin42.com
Sun Feb 19 18:12:59 EST 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1486440555 18000
#      Mon Feb 06 23:09:15 2017 -0500
# Node ID 6dd615d163eb069405ba71fe968980d3340d4702
# Parent  a7e54c6d8835bcda8aed14284046be7489a460a2
grep: enable pager

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2606,6 +2606,7 @@ def grep(ui, repo, pattern, *pats, **opt
                 except error.LookupError:
                     pass
 
+    ui.pager('grep')
     fm = ui.formatter('grep', opts)
     for ctx in cmdutil.walkchangerevs(repo, matchfn, opts, prep):
         rev = ctx.rev()


More information about the Mercurial-devel mailing list