Patchwork [04,of,19,pager] log: migrate to modern pager API

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

Comments

Augie Fackler - Feb. 19, 2017, 11:12 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486439965 18000
#      Mon Feb 06 22:59:25 2017 -0500
# Node ID 173c95da11848036895410797f8228c6562ce1d3
# Parent  c263fdd944aa367df3fce4dc30c901eb7fdadd26
log: migrate to modern pager API

Patch

diff --git a/hgext/pager.py b/hgext/pager.py
--- a/hgext/pager.py
+++ b/hgext/pager.py
@@ -110,4 +110,4 @@  def uisetup(ui):
         extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
     extensions.afterloaded('color', afterloaded)
 
-attended = ['glog', 'log', 'qdiff']
+attended = ['qdiff']
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3435,6 +3435,7 @@  def log(ui, repo, *pats, **opts):
             endrev = scmutil.revrange(repo, opts.get('rev')).max() + 1
         getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
 
+    ui.pager('log')
     displayer = cmdutil.show_changeset(ui, repo, opts, buffered=True)
     for rev in revs:
         if count == limit: