outgoing: enable pager
authorAugie Fackler <augie@google.com>
Mon, 06 Feb 2017 23:04:44 -0500
changeset 31041 77a252f2544d
parent 31040 bcc9d4ebf81b
child 31042 5b85ba3d7d77
outgoing: enable pager The structure here is similar to incoming, and requires similar treatment.
mercurial/commands.py
--- a/mercurial/commands.py	Mon Feb 06 23:04:26 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 23:04:44 2017 -0500
@@ -3643,6 +3643,7 @@
     """
     if opts.get('graph'):
         cmdutil.checkunsupportedgraphflags([], opts)
+        ui.pager('outgoing')
         o, other = hg._outgoing(ui, repo, dest, opts)
         if not o:
             cmdutil.outgoinghooks(ui, repo, other, opts, o)
@@ -3661,11 +3662,13 @@
         if 'bookmarks' not in other.listkeys('namespaces'):
             ui.warn(_("remote doesn't support bookmarks\n"))
             return 0
+        ui.pager('outgoing')
         ui.status(_('comparing with %s\n') % util.hidepassword(dest))
         return bookmarks.outgoing(ui, repo, other)
 
     repo._subtoppath = ui.expandpath(dest or 'default-push', dest or 'default')
     try:
+        ui.pager('outgoing')
         return hg.outgoing(ui, repo, dest, opts)
     finally:
         del repo._subtoppath