changeset 31038:66e1eba45f02

incoming: enable pager The design of incoming means we have to activate the pager in several places, depending on which codepath gets chosen.
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:03:48 -0500
parents a602785d86cd
children 9f28424d6483
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Feb 06 23:09:21 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 23:03:48 2017 -0500
@@ -3210,6 +3210,7 @@
             cmdutil.displaygraph(ui, repo, revdag, displayer,
                                  graphmod.asciiedges)
 
+        ui.pager('incoming')
         hg._incoming(display, lambda: 1, ui, repo, source, opts, buffered=True)
         return 0
 
@@ -3223,11 +3224,13 @@
         if 'bookmarks' not in other.listkeys('namespaces'):
             ui.warn(_("remote doesn't support bookmarks\n"))
             return 0
+        ui.pager('incoming')
         ui.status(_('comparing with %s\n') % util.hidepassword(source))
         return bookmarks.incoming(ui, repo, other)
 
     repo._subtoppath = ui.expandpath(source)
     try:
+        ui.pager('incoming')
         return hg.incoming(ui, repo, source, opts)
     finally:
         del repo._subtoppath