Patchwork [13,of,19,pager] outgoing: enable pager

login
register
mail settings
Submitter Augie Fackler
Date Feb. 19, 2017, 11:13 p.m.
Message ID <1a66b4d02263e729191c.1487545984@imladris.local>
Download mbox | patch
Permalink /patch/18667/
State Accepted
Headers show

Comments

Augie Fackler - Feb. 19, 2017, 11:13 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486440284 18000
#      Mon Feb 06 23:04:44 2017 -0500
# Node ID 1a66b4d02263e729191c832b6c1ede112a698279
# Parent  8068b33f645ab0e7770f709e9b9d8dd24f67d762
outgoing: enable pager

The structure here is similar to incoming, and requires similar treatment.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3643,6 +3643,7 @@  def outgoing(ui, repo, dest=None, **opts
     """
     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 @@  def outgoing(ui, repo, dest=None, **opts
         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