[PATCH] pager: make config info accessible with "hg help pager"

Christian Ebert blacktrash at gmx.net
Thu Apr 3 05:42:29 CDT 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1207219297 -7200
# Node ID 891a3168845acd9bd8521e5f0d0698964c9d4715
# Parent  da752414978770dd8aaa8f4303eac98563e4555d
pager: make config info accessible with "hg help pager"

diff --git a/hgext/pager.py b/hgext/pager.py
--- a/hgext/pager.py
+++ b/hgext/pager.py
@@ -10,36 +10,41 @@
 #   [extension]
 #   hgext.pager =
 #
-# To set the pager that should be used, set the application variable:
-#
-#   [pager]
-#   pager = LESS='FSRX' less
-#
-# If no pager is set, the pager extensions uses the environment
-# variable $PAGER. If neither pager.pager, nor $PAGER is set, no pager
-# is used.
-#
-# If you notice "BROKEN PIPE" error messages, you can disable them
-# by setting:
-#
-#   [pager]
-#   quiet = True
-#
-# You can disable the pager for certain commands by adding them to the
-# pager.ignore list:
-#
-#   [pager]
-#   ignore = version, help, update
-#
-# You can also enable the pager only for certain commands using pager.attend:
-#
-#   [pager]
-#   attend = log
-#
-# If pager.attend is present, pager.ignore will be ignored.
-#
-# To ignore global commands like 'hg version' or 'hg help', you have to specify them
-# in the global .hgrc
+# Run "hg help pager" to get info on configuration.
+
+'''browse command output with external pager
+
+To set the pager that should be used, set the application variable:
+
+  [pager]
+  pager = LESS='FSRX' less
+
+If no pager is set, the pager extensions uses the environment
+variable $PAGER. If neither pager.pager, nor $PAGER is set, no pager
+is used.
+
+If you notice "BROKEN PIPE" error messages, you can disable them
+by setting:
+
+  [pager]
+  quiet = True
+
+You can disable the pager for certain commands by adding them to the
+pager.ignore list:
+
+  [pager]
+  ignore = version, help, update
+
+You can also enable the pager only for certain commands using pager.attend:
+
+  [pager]
+  attend = log
+
+If pager.attend is present, pager.ignore will be ignored.
+
+To ignore global commands like "hg version" or "hg help", you have to specify
+them in the global .hgrc
+'''
 
 import sys, os, signal
 from mercurial import dispatch


More information about the Mercurial-devel mailing list