Mercurial > hg
comparison hgext/pager.py @ 9069:1abf3fdc5db4
pager: wrapped docstrings at 78 characters
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 07 Jul 2009 23:54:42 +0200 |
parents | 868670dbc237 |
children | dfc1d5da98f0 |
comparison
equal
deleted
inserted
replaced
9068:27a41250a9ce | 9069:1abf3fdc5db4 |
---|---|
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 | 22 If no pager is set, the pager extensions uses the environment variable $PAGER. |
23 $PAGER. If neither pager.pager, nor $PAGER is set, no pager is used. | 23 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 | 25 If you notice "BROKEN PIPE" error messages, you can disable them by setting: |
26 setting: | |
27 | 26 |
28 [pager] | 27 [pager] |
29 quiet = True | 28 quiet = True |
30 | 29 |
31 You can disable the pager for certain commands by adding them to the | 30 You can disable the pager for certain commands by adding them to the |
32 pager.ignore list: | 31 pager.ignore list: |
33 | 32 |
34 [pager] | 33 [pager] |
35 ignore = version, help, update | 34 ignore = version, help, update |
36 | 35 |
37 You can also enable the pager only for certain commands using | 36 You can also enable the pager only for certain commands using pager.attend: |
38 pager.attend: | |
39 | 37 |
40 [pager] | 38 [pager] |
41 attend = log | 39 attend = log |
42 | 40 |
43 If pager.attend is present, pager.ignore will be ignored. | 41 If pager.attend is present, pager.ignore will be ignored. |
44 | 42 |
45 To ignore global commands like "hg version" or "hg help", you have to | 43 To ignore global commands like "hg version" or "hg help", you have to specify |
46 specify them in the global .hgrc | 44 them in the global .hgrc |
47 ''' | 45 ''' |
48 | 46 |
49 import sys, os, signal | 47 import sys, os, signal |
50 from mercurial import dispatch, util, extensions | 48 from mercurial import dispatch, util, extensions |
51 | 49 |