changeset 31052:1cec1d863008

log: migrate to modern pager API
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 22:59:25 -0500
parents bd538ed3b9e6
children 861b070d92da
files hgext/pager.py mercurial/commands.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/pager.py	Mon Feb 06 22:58:54 2017 -0500
+++ b/hgext/pager.py	Mon Feb 06 22:59:25 2017 -0500
@@ -110,4 +110,4 @@
         extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
     extensions.afterloaded('color', afterloaded)
 
-attended = ['glog', 'log', 'qdiff']
+attended = ['qdiff']
--- a/mercurial/commands.py	Mon Feb 06 22:58:54 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 22:59:25 2017 -0500
@@ -3435,6 +3435,7 @@
             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: