[PATCH 09 of 19 pager] help: enable pager

Augie Fackler raf at durin42.com
Sun Feb 19 18:13:00 EST 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1486440561 18000
#      Mon Feb 06 23:09:21 2017 -0500
# Node ID f6f080904a6ecac993f137b92d50bf4991f8d07c
# Parent  6dd615d163eb069405ba71fe968980d3340d4702
help: enable pager

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2721,7 +2721,6 @@ def help_(ui, name=None, **opts):
 
     Returns 0 if successful.
     """
-
     textwidth = ui.configint('ui', 'textwidth', 78)
     termwidth = ui.termwidth() - 2
     if textwidth <= 0 or termwidth < textwidth:
@@ -2772,6 +2771,7 @@ def help_(ui, name=None, **opts):
         keep.append('notomitted')
     formatted, pruned = minirst.format(text, textwidth, keep=keep,
                                        section=section)
+    ui.pager('help')
     ui.write(formatted)
 
 


More information about the Mercurial-devel mailing list