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 |
22 If no pager is set, the pager extensions uses the environment variable |
23 variable $PAGER. If neither pager.pager, nor $PAGER is set, no pager |
23 $PAGER. If neither pager.pager, nor $PAGER is set, no pager is used. |
24 is used. |
|
25 |
24 |
26 If you notice "BROKEN PIPE" error messages, you can disable them |
25 If you notice "BROKEN PIPE" error messages, you can disable them by |
27 by setting: |
26 setting: |
28 |
27 |
29 [pager] |
28 [pager] |
30 quiet = True |
29 quiet = True |
31 |
30 |
32 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 |
33 pager.ignore list: |
32 pager.ignore list: |
34 |
33 |
35 [pager] |
34 [pager] |
36 ignore = version, help, update |
35 ignore = version, help, update |
37 |
36 |
38 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: |
39 |
39 |
40 [pager] |
40 [pager] |
41 attend = log |
41 attend = log |
42 |
42 |
43 If pager.attend is present, pager.ignore will be ignored. |
43 If pager.attend is present, pager.ignore will be ignored. |
44 |
44 |
45 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 |
46 them in the global .hgrc |
46 specify them in the global .hgrc |
47 ''' |
47 ''' |
48 |
48 |
49 import sys, os, signal |
49 import sys, os, signal |
50 from mercurial import dispatch, util, extensions |
50 from mercurial import dispatch, util, extensions |
51 |
51 |