Mercurial > hg-stable
changeset 6462:6c4e12682fb9
pager: make config info accessible with "hg help pager"
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Thu, 03 Apr 2008 13:47:05 +0200 |
parents | eb69e7989145 |
children | 5e011a402352 af2edc9c5bb9 |
files | hgext/pager.py |
diffstat | 1 files changed, 35 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/pager.py Thu Apr 03 12:46:37 2008 +0200 +++ b/hgext/pager.py Thu Apr 03 13:47:05 2008 +0200 @@ -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