[PATCH 1 of 2] pager: improve help for --pager=

timeless timeless at mozdev.org
Mon Nov 30 19:09:54 UTC 2015


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1448909253 0
#      Mon Nov 30 18:47:33 2015 +0000
# Node ID a92289f0420c849b40f86904d935c7598a49cfa4
# Parent  61fbf5dc12b23e7a2a30cf04ebd9f096c42a1f61
pager: improve help for --pager=

try to clarify how to enable/disable the pager

diff --git a/hgext/pager.py b/hgext/pager.py
--- a/hgext/pager.py
+++ b/hgext/pager.py
@@ -49,9 +49,13 @@
 To ignore global commands like :hg:`version` or :hg:`help`, you have
 to specify them in your user configuration file.
 
-The --pager=... option can also be used to control when the pager is
-used. Use a boolean value like yes, no, on, off, or use auto for
-normal behavior.
+To control whether the pager is used at all for an individual command,
+you can use --pager=<value>::
+
+  - use as needed: `auto`.
+  - require the pager: `yes` or `on`.
+  - suppress the pager: `no` or `off` (any unrecognized value
+  will also work).
 
 '''
 


More information about the Mercurial-devel mailing list