Patchwork [08,of,19,pager] grep: enable pager

login
register
mail settings
Submitter Augie Fackler
Date Feb. 19, 2017, 11:12 p.m.
Message ID <6dd615d163eb069405ba.1487545979@imladris.local>
Download mbox | patch
Permalink /patch/18663/
State Accepted
Headers show

Comments

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

Patch

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()