[PATCH 03 of 19 pager] export: migrate to modern pager API

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


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1486439934 18000
#      Mon Feb 06 22:58:54 2017 -0500
# Node ID c263fdd944aa367df3fce4dc30c901eb7fdadd26
# Parent  c0e57f44ebed1240c000850ce256d928cdb69312
export: migrate to modern pager API

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 = ['export', 'glog', 'log', 'qdiff']
+attended = ['glog', 'log', 'qdiff']
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2022,6 +2022,7 @@ def export(ui, repo, *changesets, **opts
         ui.note(_('exporting patches:\n'))
     else:
         ui.note(_('exporting patch:\n'))
+    ui.pager('export')
     cmdutil.export(repo, revs, template=opts.get('output'),
                  switch_parent=opts.get('switch_parent'),
                  opts=patch.diffallopts(ui, opts))


More information about the Mercurial-devel mailing list