changeset 31051:bd538ed3b9e6

export: migrate to modern pager API
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 22:58:54 -0500
parents ed0023e47412
children 1cec1d863008
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:26 2017 -0500
+++ b/hgext/pager.py	Mon Feb 06 22:58:54 2017 -0500
@@ -110,4 +110,4 @@
         extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
     extensions.afterloaded('color', afterloaded)
 
-attended = ['export', 'glog', 'log', 'qdiff']
+attended = ['glog', 'log', 'qdiff']
--- a/mercurial/commands.py	Mon Feb 06 22:58:26 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 22:58:54 2017 -0500
@@ -2022,6 +2022,7 @@
         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))