Show More
@@ -10,36 +10,41 b'' | |||
|
10 | 10 | # [extension] |
|
11 | 11 | # hgext.pager = |
|
12 | 12 | # |
|
13 | # To set the pager that should be used, set the application variable: | |
|
14 | # | |
|
15 | # [pager] | |
|
16 | # pager = LESS='FSRX' less | |
|
17 | # | |
|
18 | # If no pager is set, the pager extensions uses the environment | |
|
19 | # variable $PAGER. If neither pager.pager, nor $PAGER is set, no pager | |
|
20 | # is used. | |
|
21 | # | |
|
22 | # If you notice "BROKEN PIPE" error messages, you can disable them | |
|
23 | # by setting: | |
|
24 | # | |
|
25 | # [pager] | |
|
26 | # quiet = True | |
|
27 | # | |
|
28 | # You can disable the pager for certain commands by adding them to the | |
|
29 | # pager.ignore list: | |
|
30 | # | |
|
31 | # [pager] | |
|
32 | # ignore = version, help, update | |
|
33 | # | |
|
34 | # You can also enable the pager only for certain commands using pager.attend: | |
|
35 | # | |
|
36 | # [pager] | |
|
37 | # attend = log | |
|
38 | # | |
|
39 | # If pager.attend is present, pager.ignore will be ignored. | |
|
40 | # | |
|
41 | # To ignore global commands like 'hg version' or 'hg help', you have to specify them | |
|
42 | # in the global .hgrc | |
|
13 | # Run "hg help pager" to get info on configuration. | |
|
14 | ||
|
15 | '''browse command output with external pager | |
|
16 | ||
|
17 | To set the pager that should be used, set the application variable: | |
|
18 | ||
|
19 | [pager] | |
|
20 | pager = LESS='FSRX' less | |
|
21 | ||
|
22 | If no pager is set, the pager extensions uses the environment | |
|
23 | variable $PAGER. If neither pager.pager, nor $PAGER is set, no pager | |
|
24 | is used. | |
|
25 | ||
|
26 | If you notice "BROKEN PIPE" error messages, you can disable them | |
|
27 | by setting: | |
|
28 | ||
|
29 | [pager] | |
|
30 | quiet = True | |
|
31 | ||
|
32 | You can disable the pager for certain commands by adding them to the | |
|
33 | pager.ignore list: | |
|
34 | ||
|
35 | [pager] | |
|
36 | ignore = version, help, update | |
|
37 | ||
|
38 | You can also enable the pager only for certain commands using pager.attend: | |
|
39 | ||
|
40 | [pager] | |
|
41 | attend = log | |
|
42 | ||
|
43 | If pager.attend is present, pager.ignore will be ignored. | |
|
44 | ||
|
45 | To ignore global commands like "hg version" or "hg help", you have to specify | |
|
46 | them in the global .hgrc | |
|
47 | ''' | |
|
43 | 48 | |
|
44 | 49 | import sys, os, signal |
|
45 | 50 | from mercurial import dispatch |
General Comments 0
You need to be logged in to leave comments.
Login now