Patchwork [11,of,19,pager] locate: enable pager

login
register
mail settings
Submitter Augie Fackler
Date Feb. 19, 2017, 11:13 p.m.
Message ID <fbd10f8b093b23fb9dba.1487545982@imladris.local>
Download mbox | patch
Permalink /patch/18665/
State Accepted
Headers show

Comments

Augie Fackler - Feb. 19, 2017, 11:13 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486440250 18000
#      Mon Feb 06 23:04:10 2017 -0500
# Node ID fbd10f8b093b23fb9dba972b5a05c7bcdfb904f2
# Parent  b6f05836ba20bb8b25469a30aeed1b3506392bbf
locate: enable pager

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3292,6 +3292,7 @@  def locate(ui, repo, *pats, **opts):
     m = scmutil.match(ctx, pats, opts, default='relglob',
                       badfn=lambda x, y: False)
 
+    ui.pager('locate')
     for abs in ctx.matches(m):
         if opts.get('fullpath'):
             ui.write(repo.wjoin(abs), end)