##// END OF EJS Templates
pager: move most help to a new help topic and deprecate extension
Augie Fackler -
r31061:900996da default
parent child Browse files
Show More
@@ -0,0 +1,28 b''
1 Some Mercurial commands produce a lot of output, and Mercurial will
2 attempt to use a pager to make those commands more pleasant.
3
4 To set the pager that should be used, set the application variable::
5
6 [pager]
7 pager = less -FRX
8
9 If no pager is set, the pager extensions uses the environment variable
10 $PAGER. If neither pager.pager, nor $PAGER is set, a default pager
11 will be used, typically `more`.
12
13 You can disable the pager for certain commands by adding them to the
14 pager.ignore list::
15
16 [pager]
17 ignore = version, help, update
18
19 To ignore global commands like :hg:`version` or :hg:`help`, you have
20 to specify them in your user configuration file.
21
22 To control whether the pager is used at all for an individual command,
23 you can use --pager=<value>::
24
25 - use as needed: `auto`.
26 - require the pager: `yes` or `on`.
27 - suppress the pager: `no` or `off` (any unrecognized value
28 will also work).
@@ -12,51 +12,14 b''
12 #
12 #
13 # Run 'hg help pager' to get info on configuration.
13 # Run 'hg help pager' to get info on configuration.
14
14
15 '''browse command output with an external pager
15 '''browse command output with an external pager (DEPRECATED)
16
17 To set the pager that should be used, set the application variable::
18
19 [pager]
20 pager = less -FRX
21
22 If no pager is set, the pager extensions uses the environment variable
23 $PAGER. If neither pager.pager, nor $PAGER is set, no pager is used.
24
25 You can disable the pager for certain commands by adding them to the
26 pager.ignore list::
27
16
28 [pager]
17 Forcibly enable paging for individual commands that don't typically
29 ignore = version, help, update
18 request pagination with the attend-<command> option. This setting
30
19 takes precedence over ignore options and defaults::
31 You can also enable the pager only for certain commands using
32 pager.attend. Below is the default list of commands to be paged::
33
34 [pager]
35 attend = annotate, cat, diff, export, glog, log, qdiff
36
37 Setting pager.attend to an empty value will cause all commands to be
38 paged.
39
40 If pager.attend is present, pager.ignore will be ignored.
41
42 Lastly, you can enable and disable paging for individual commands with
43 the attend-<command> option. This setting takes precedence over
44 existing attend and ignore options and defaults::
45
20
46 [pager]
21 [pager]
47 attend-cat = false
22 attend-cat = false
48
49 To ignore global commands like :hg:`version` or :hg:`help`, you have
50 to specify them in your user configuration file.
51
52 To control whether the pager is used at all for an individual command,
53 you can use --pager=<value>::
54
55 - use as needed: `auto`.
56 - require the pager: `yes` or `on`.
57 - suppress the pager: `no` or `off` (any unrecognized value
58 will also work).
59
60 '''
23 '''
61 from __future__ import absolute_import
24 from __future__ import absolute_import
62
25
@@ -230,6 +230,7 b' helptable = sorted(['
230 loaddoc('scripting')),
230 loaddoc('scripting')),
231 (['internals'], _("Technical implementation topics"),
231 (['internals'], _("Technical implementation topics"),
232 internalshelp),
232 internalshelp),
233 (['pager'], _("Pager Support"), loaddoc('pager')),
233 ])
234 ])
234
235
235 # Maps topics with sub-topics to a list of their sub-topics.
236 # Maps topics with sub-topics to a list of their sub-topics.
@@ -351,6 +351,7 b' Testing -h/--help:'
351 hgweb Configuring hgweb
351 hgweb Configuring hgweb
352 internals Technical implementation topics
352 internals Technical implementation topics
353 merge-tools Merge Tools
353 merge-tools Merge Tools
354 pager Pager Support
354 patterns File Name Patterns
355 patterns File Name Patterns
355 phases Working with Phases
356 phases Working with Phases
356 revisions Specifying Revisions
357 revisions Specifying Revisions
@@ -432,6 +433,7 b' Testing -h/--help:'
432 hgweb Configuring hgweb
433 hgweb Configuring hgweb
433 internals Technical implementation topics
434 internals Technical implementation topics
434 merge-tools Merge Tools
435 merge-tools Merge Tools
436 pager Pager Support
435 patterns File Name Patterns
437 patterns File Name Patterns
436 phases Working with Phases
438 phases Working with Phases
437 revisions Specifying Revisions
439 revisions Specifying Revisions
@@ -113,6 +113,7 b' Short help:'
113 hgweb Configuring hgweb
113 hgweb Configuring hgweb
114 internals Technical implementation topics
114 internals Technical implementation topics
115 merge-tools Merge Tools
115 merge-tools Merge Tools
116 pager Pager Support
116 patterns File Name Patterns
117 patterns File Name Patterns
117 phases Working with Phases
118 phases Working with Phases
118 revisions Specifying Revisions
119 revisions Specifying Revisions
@@ -188,6 +189,7 b' Short help:'
188 hgweb Configuring hgweb
189 hgweb Configuring hgweb
189 internals Technical implementation topics
190 internals Technical implementation topics
190 merge-tools Merge Tools
191 merge-tools Merge Tools
192 pager Pager Support
191 patterns File Name Patterns
193 patterns File Name Patterns
192 phases Working with Phases
194 phases Working with Phases
193 revisions Specifying Revisions
195 revisions Specifying Revisions
@@ -262,7 +264,6 b' Test extension help:'
262 largefiles track large binary files
264 largefiles track large binary files
263 mq manage a stack of patches
265 mq manage a stack of patches
264 notify hooks for sending email push notifications
266 notify hooks for sending email push notifications
265 pager browse command output with an external pager
266 patchbomb command to send changesets as (a series of) patch emails
267 patchbomb command to send changesets as (a series of) patch emails
267 purge command to delete untracked files from the working
268 purge command to delete untracked files from the working
268 directory
269 directory
@@ -831,6 +832,7 b' Test that default list of commands omits'
831 hgweb Configuring hgweb
832 hgweb Configuring hgweb
832 internals Technical implementation topics
833 internals Technical implementation topics
833 merge-tools Merge Tools
834 merge-tools Merge Tools
835 pager Pager Support
834 patterns File Name Patterns
836 patterns File Name Patterns
835 phases Working with Phases
837 phases Working with Phases
836 revisions Specifying Revisions
838 revisions Specifying Revisions
@@ -1918,6 +1920,13 b' Dish up an empty repo; serve it cold.'
1918 Merge Tools
1920 Merge Tools
1919 </td></tr>
1921 </td></tr>
1920 <tr><td>
1922 <tr><td>
1923 <a href="/help/pager">
1924 pager
1925 </a>
1926 </td><td>
1927 Pager Support
1928 </td></tr>
1929 <tr><td>
1921 <a href="/help/patterns">
1930 <a href="/help/patterns">
1922 patterns
1931 patterns
1923 </a>
1932 </a>
@@ -1593,6 +1593,10 b' help/ shows help topics'
1593 "topic": "merge-tools"
1593 "topic": "merge-tools"
1594 },
1594 },
1595 {
1595 {
1596 "summary": "Pager Support",
1597 "topic": "pager"
1598 },
1599 {
1596 "summary": "File Name Patterns",
1600 "summary": "File Name Patterns",
1597 "topic": "patterns"
1601 "topic": "patterns"
1598 },
1602 },
@@ -166,6 +166,7 b' path variables are expanded (~ is the sa'
166 help/hg.1.txt
166 help/hg.1.txt
167 help/hgignore.5.txt
167 help/hgignore.5.txt
168 help/hgrc.5.txt
168 help/hgrc.5.txt
169 help/pager.txt
169 Not tracked:
170 Not tracked:
170
171
171 $ python wixxml.py templates
172 $ python wixxml.py templates
General Comments 0
You need to be logged in to leave comments. Login now