comparison mercurial/help.py @ 7012:78341ea65d16

restructure helptable When looking up a help topic, the key is now only matched against the short names for each topic, and not the header. So hg help 'Environment Variables' must be replaced with hg help env
author Martin Geisler <mg@daimi.au.dk>
date Tue, 09 Sep 2008 21:32:39 +0200
parents c68f84448012
children f56e788fa292
comparison
equal deleted inserted replaced
7011:7da76778dbd7 7012:78341ea65d16
4 # 4 #
5 # This software may be used and distributed according to the terms 5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference. 6 # of the GNU General Public License, incorporated herein by reference.
7 7
8 helptable = ( 8 helptable = (
9 ("dates|Date Formats", 9 (["dates"], "Date Formats",
10 r''' 10 r'''
11 Some commands allow the user to specify a date: 11 Some commands allow the user to specify a date:
12 backout, commit, import, tag: Specify the commit date. 12 backout, commit, import, tag: Specify the commit date.
13 log, revert, update: Select revision(s) by date. 13 log, revert, update: Select revision(s) by date.
14 14
43 ">{date}" - on or after a given date 43 ">{date}" - on or after a given date
44 "{date} to {date}" - a date range, inclusive 44 "{date} to {date}" - a date range, inclusive
45 "-{days}" - within a given number of days of today 45 "-{days}" - within a given number of days of today
46 '''), 46 '''),
47 47
48 ("patterns|File Name Patterns", 48 (["patterns"], "File Name Patterns",
49 r''' 49 r'''
50 Mercurial accepts several notations for identifying one or more 50 Mercurial accepts several notations for identifying one or more
51 files at a time. 51 files at a time.
52 52
53 By default, Mercurial treats filenames as shell-style extended 53 By default, Mercurial treats filenames as shell-style extended
89 89
90 re:.*\.c$ any name ending in ".c", anywhere in the repository 90 re:.*\.c$ any name ending in ".c", anywhere in the repository
91 91
92 '''), 92 '''),
93 93
94 ('environment|env|Environment Variables', 94 (['environment', 'env'], 'Environment Variables',
95 r''' 95 r'''
96 HG:: 96 HG::
97 Path to the 'hg' executable, automatically passed when running hooks, 97 Path to the 'hg' executable, automatically passed when running hooks,
98 extensions or external tools. If unset or empty, an executable named 98 extensions or external tools. If unset or empty, an executable named
99 'hg' (with com/exe/bat/cmd extension on Windows) is searched. 99 'hg' (with com/exe/bat/cmd extension on Windows) is searched.
160 PYTHONPATH:: 160 PYTHONPATH::
161 This is used by Python to find imported modules and may need to be set 161 This is used by Python to find imported modules and may need to be set
162 appropriately if Mercurial is not installed system-wide. 162 appropriately if Mercurial is not installed system-wide.
163 '''), 163 '''),
164 164
165 ('revs|revisions|Specifying Single Revisions', 165 (['revs', 'revisions'], 'Specifying Single Revisions',
166 r''' 166 r'''
167 Mercurial accepts several notations for identifying individual 167 Mercurial accepts several notations for identifying individual
168 revisions. 168 revisions.
169 169
170 A plain integer is treated as a revision number. Negative 170 A plain integer is treated as a revision number. Negative
193 no working directory is checked out, it is equivalent to null. 193 no working directory is checked out, it is equivalent to null.
194 If an uncommitted merge is in progress, "." is the revision of 194 If an uncommitted merge is in progress, "." is the revision of
195 the first parent. 195 the first parent.
196 '''), 196 '''),
197 197
198 ('mrevs|multirevs|Specifying Multiple Revisions', 198 (['mrevs', 'multirevs'], 'Specifying Multiple Revisions',
199 r''' 199 r'''
200 When Mercurial accepts more than one revision, they may be 200 When Mercurial accepts more than one revision, they may be
201 specified individually, or provided as a continuous range, 201 specified individually, or provided as a continuous range,
202 separated by the ":" character. 202 separated by the ":" character.
203 203