Mercurial > hg
comparison hgext/pager.py @ 9267:bd9e5d200186
pager: wrap docstrings at 70 characters
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 26 Jul 2009 01:56:02 +0200 |
parents | dfc1d5da98f0 |
children | 7cd6dee6fe37 |
comparison
equal
deleted
inserted
replaced
9266:0efb3360bdb3 | 9267:bd9e5d200186 |
---|---|
17 To set the pager that should be used, set the application variable:: | 17 To set the pager that should be used, set the application variable:: |
18 | 18 |
19 [pager] | 19 [pager] |
20 pager = LESS='FSRX' less | 20 pager = LESS='FSRX' less |
21 | 21 |
22 If no pager is set, the pager extensions uses the environment variable $PAGER. | 22 If no pager is set, the pager extensions uses the environment variable |
23 If neither pager.pager, nor $PAGER is set, no pager is used. | 23 $PAGER. If neither pager.pager, nor $PAGER is set, no pager is used. |
24 | 24 |
25 If you notice "BROKEN PIPE" error messages, you can disable them by setting:: | 25 If you notice "BROKEN PIPE" error messages, you can disable them by |
26 setting:: | |
26 | 27 |
27 [pager] | 28 [pager] |
28 quiet = True | 29 quiet = True |
29 | 30 |
30 You can disable the pager for certain commands by adding them to the | 31 You can disable the pager for certain commands by adding them to the |
31 pager.ignore list:: | 32 pager.ignore list:: |
32 | 33 |
33 [pager] | 34 [pager] |
34 ignore = version, help, update | 35 ignore = version, help, update |
35 | 36 |
36 You can also enable the pager only for certain commands using pager.attend:: | 37 You can also enable the pager only for certain commands using |
38 pager.attend:: | |
37 | 39 |
38 [pager] | 40 [pager] |
39 attend = log | 41 attend = log |
40 | 42 |
41 If pager.attend is present, pager.ignore will be ignored. | 43 If pager.attend is present, pager.ignore will be ignored. |
42 | 44 |
43 To ignore global commands like "hg version" or "hg help", you have to specify | 45 To ignore global commands like "hg version" or "hg help", you have to |
44 them in the global .hgrc | 46 specify them in the global .hgrc |
45 ''' | 47 ''' |
46 | 48 |
47 import sys, os, signal | 49 import sys, os, signal |
48 from mercurial import dispatch, util, extensions | 50 from mercurial import dispatch, util, extensions |
49 | 51 |