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

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

Comments

Augie Fackler - Feb. 19, 2017, 11:12 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486439934 18000
#      Mon Feb 06 22:58:54 2017 -0500
# Node ID c263fdd944aa367df3fce4dc30c901eb7fdadd26
# Parent  c0e57f44ebed1240c000850ce256d928cdb69312
export: 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 = ['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))