##// END OF EJS Templates
test: fix typo in test-help.t
André Sintzoff -
r23612:6006cad5 default
parent child Browse files
Show More
@@ -1,2119 +1,2121 b''
1 Short help:
1 Short help:
2
2
3 $ hg
3 $ hg
4 Mercurial Distributed SCM
4 Mercurial Distributed SCM
5
5
6 basic commands:
6 basic commands:
7
7
8 add add the specified files on the next commit
8 add add the specified files on the next commit
9 annotate show changeset information by line for each file
9 annotate show changeset information by line for each file
10 clone make a copy of an existing repository
10 clone make a copy of an existing repository
11 commit commit the specified files or all outstanding changes
11 commit commit the specified files or all outstanding changes
12 diff diff repository (or selected files)
12 diff diff repository (or selected files)
13 export dump the header and diffs for one or more changesets
13 export dump the header and diffs for one or more changesets
14 forget forget the specified files on the next commit
14 forget forget the specified files on the next commit
15 init create a new repository in the given directory
15 init create a new repository in the given directory
16 log show revision history of entire repository or files
16 log show revision history of entire repository or files
17 merge merge another revision into working directory
17 merge merge another revision into working directory
18 pull pull changes from the specified source
18 pull pull changes from the specified source
19 push push changes to the specified destination
19 push push changes to the specified destination
20 remove remove the specified files on the next commit
20 remove remove the specified files on the next commit
21 serve start stand-alone webserver
21 serve start stand-alone webserver
22 status show changed files in the working directory
22 status show changed files in the working directory
23 summary summarize working directory state
23 summary summarize working directory state
24 update update working directory (or switch revisions)
24 update update working directory (or switch revisions)
25
25
26 (use "hg help" for the full list of commands or "hg -v" for details)
26 (use "hg help" for the full list of commands or "hg -v" for details)
27
27
28 $ hg -q
28 $ hg -q
29 add add the specified files on the next commit
29 add add the specified files on the next commit
30 annotate show changeset information by line for each file
30 annotate show changeset information by line for each file
31 clone make a copy of an existing repository
31 clone make a copy of an existing repository
32 commit commit the specified files or all outstanding changes
32 commit commit the specified files or all outstanding changes
33 diff diff repository (or selected files)
33 diff diff repository (or selected files)
34 export dump the header and diffs for one or more changesets
34 export dump the header and diffs for one or more changesets
35 forget forget the specified files on the next commit
35 forget forget the specified files on the next commit
36 init create a new repository in the given directory
36 init create a new repository in the given directory
37 log show revision history of entire repository or files
37 log show revision history of entire repository or files
38 merge merge another revision into working directory
38 merge merge another revision into working directory
39 pull pull changes from the specified source
39 pull pull changes from the specified source
40 push push changes to the specified destination
40 push push changes to the specified destination
41 remove remove the specified files on the next commit
41 remove remove the specified files on the next commit
42 serve start stand-alone webserver
42 serve start stand-alone webserver
43 status show changed files in the working directory
43 status show changed files in the working directory
44 summary summarize working directory state
44 summary summarize working directory state
45 update update working directory (or switch revisions)
45 update update working directory (or switch revisions)
46
46
47 $ hg help
47 $ hg help
48 Mercurial Distributed SCM
48 Mercurial Distributed SCM
49
49
50 list of commands:
50 list of commands:
51
51
52 add add the specified files on the next commit
52 add add the specified files on the next commit
53 addremove add all new files, delete all missing files
53 addremove add all new files, delete all missing files
54 annotate show changeset information by line for each file
54 annotate show changeset information by line for each file
55 archive create an unversioned archive of a repository revision
55 archive create an unversioned archive of a repository revision
56 backout reverse effect of earlier changeset
56 backout reverse effect of earlier changeset
57 bisect subdivision search of changesets
57 bisect subdivision search of changesets
58 bookmarks create a new bookmark or list existing bookmarks
58 bookmarks create a new bookmark or list existing bookmarks
59 branch set or show the current branch name
59 branch set or show the current branch name
60 branches list repository named branches
60 branches list repository named branches
61 bundle create a changegroup file
61 bundle create a changegroup file
62 cat output the current or given revision of files
62 cat output the current or given revision of files
63 clone make a copy of an existing repository
63 clone make a copy of an existing repository
64 commit commit the specified files or all outstanding changes
64 commit commit the specified files or all outstanding changes
65 config show combined config settings from all hgrc files
65 config show combined config settings from all hgrc files
66 copy mark files as copied for the next commit
66 copy mark files as copied for the next commit
67 diff diff repository (or selected files)
67 diff diff repository (or selected files)
68 export dump the header and diffs for one or more changesets
68 export dump the header and diffs for one or more changesets
69 files list tracked files
69 files list tracked files
70 forget forget the specified files on the next commit
70 forget forget the specified files on the next commit
71 graft copy changes from other branches onto the current branch
71 graft copy changes from other branches onto the current branch
72 grep search for a pattern in specified files and revisions
72 grep search for a pattern in specified files and revisions
73 heads show branch heads
73 heads show branch heads
74 help show help for a given topic or a help overview
74 help show help for a given topic or a help overview
75 identify identify the working copy or specified revision
75 identify identify the working copy or specified revision
76 import import an ordered set of patches
76 import import an ordered set of patches
77 incoming show new changesets found in source
77 incoming show new changesets found in source
78 init create a new repository in the given directory
78 init create a new repository in the given directory
79 log show revision history of entire repository or files
79 log show revision history of entire repository or files
80 manifest output the current or given revision of the project manifest
80 manifest output the current or given revision of the project manifest
81 merge merge another revision into working directory
81 merge merge another revision into working directory
82 outgoing show changesets not found in the destination
82 outgoing show changesets not found in the destination
83 paths show aliases for remote repositories
83 paths show aliases for remote repositories
84 phase set or show the current phase name
84 phase set or show the current phase name
85 pull pull changes from the specified source
85 pull pull changes from the specified source
86 push push changes to the specified destination
86 push push changes to the specified destination
87 recover roll back an interrupted transaction
87 recover roll back an interrupted transaction
88 remove remove the specified files on the next commit
88 remove remove the specified files on the next commit
89 rename rename files; equivalent of copy + remove
89 rename rename files; equivalent of copy + remove
90 resolve redo merges or set/view the merge status of files
90 resolve redo merges or set/view the merge status of files
91 revert restore files to their checkout state
91 revert restore files to their checkout state
92 root print the root (top) of the current working directory
92 root print the root (top) of the current working directory
93 serve start stand-alone webserver
93 serve start stand-alone webserver
94 status show changed files in the working directory
94 status show changed files in the working directory
95 summary summarize working directory state
95 summary summarize working directory state
96 tag add one or more tags for the current or given revision
96 tag add one or more tags for the current or given revision
97 tags list repository tags
97 tags list repository tags
98 unbundle apply one or more changegroup files
98 unbundle apply one or more changegroup files
99 update update working directory (or switch revisions)
99 update update working directory (or switch revisions)
100 verify verify the integrity of the repository
100 verify verify the integrity of the repository
101 version output version and copyright information
101 version output version and copyright information
102
102
103 additional help topics:
103 additional help topics:
104
104
105 config Configuration Files
105 config Configuration Files
106 dates Date Formats
106 dates Date Formats
107 diffs Diff Formats
107 diffs Diff Formats
108 environment Environment Variables
108 environment Environment Variables
109 extensions Using Additional Features
109 extensions Using Additional Features
110 filesets Specifying File Sets
110 filesets Specifying File Sets
111 glossary Glossary
111 glossary Glossary
112 hgignore Syntax for Mercurial Ignore Files
112 hgignore Syntax for Mercurial Ignore Files
113 hgweb Configuring hgweb
113 hgweb Configuring hgweb
114 merge-tools Merge Tools
114 merge-tools Merge Tools
115 multirevs Specifying Multiple Revisions
115 multirevs Specifying Multiple Revisions
116 patterns File Name Patterns
116 patterns File Name Patterns
117 phases Working with Phases
117 phases Working with Phases
118 revisions Specifying Single Revisions
118 revisions Specifying Single Revisions
119 revsets Specifying Revision Sets
119 revsets Specifying Revision Sets
120 subrepos Subrepositories
120 subrepos Subrepositories
121 templating Template Usage
121 templating Template Usage
122 urls URL Paths
122 urls URL Paths
123
123
124 (use "hg help -v" to show built-in aliases and global options)
124 (use "hg help -v" to show built-in aliases and global options)
125
125
126 $ hg -q help
126 $ hg -q help
127 add add the specified files on the next commit
127 add add the specified files on the next commit
128 addremove add all new files, delete all missing files
128 addremove add all new files, delete all missing files
129 annotate show changeset information by line for each file
129 annotate show changeset information by line for each file
130 archive create an unversioned archive of a repository revision
130 archive create an unversioned archive of a repository revision
131 backout reverse effect of earlier changeset
131 backout reverse effect of earlier changeset
132 bisect subdivision search of changesets
132 bisect subdivision search of changesets
133 bookmarks create a new bookmark or list existing bookmarks
133 bookmarks create a new bookmark or list existing bookmarks
134 branch set or show the current branch name
134 branch set or show the current branch name
135 branches list repository named branches
135 branches list repository named branches
136 bundle create a changegroup file
136 bundle create a changegroup file
137 cat output the current or given revision of files
137 cat output the current or given revision of files
138 clone make a copy of an existing repository
138 clone make a copy of an existing repository
139 commit commit the specified files or all outstanding changes
139 commit commit the specified files or all outstanding changes
140 config show combined config settings from all hgrc files
140 config show combined config settings from all hgrc files
141 copy mark files as copied for the next commit
141 copy mark files as copied for the next commit
142 diff diff repository (or selected files)
142 diff diff repository (or selected files)
143 export dump the header and diffs for one or more changesets
143 export dump the header and diffs for one or more changesets
144 files list tracked files
144 files list tracked files
145 forget forget the specified files on the next commit
145 forget forget the specified files on the next commit
146 graft copy changes from other branches onto the current branch
146 graft copy changes from other branches onto the current branch
147 grep search for a pattern in specified files and revisions
147 grep search for a pattern in specified files and revisions
148 heads show branch heads
148 heads show branch heads
149 help show help for a given topic or a help overview
149 help show help for a given topic or a help overview
150 identify identify the working copy or specified revision
150 identify identify the working copy or specified revision
151 import import an ordered set of patches
151 import import an ordered set of patches
152 incoming show new changesets found in source
152 incoming show new changesets found in source
153 init create a new repository in the given directory
153 init create a new repository in the given directory
154 log show revision history of entire repository or files
154 log show revision history of entire repository or files
155 manifest output the current or given revision of the project manifest
155 manifest output the current or given revision of the project manifest
156 merge merge another revision into working directory
156 merge merge another revision into working directory
157 outgoing show changesets not found in the destination
157 outgoing show changesets not found in the destination
158 paths show aliases for remote repositories
158 paths show aliases for remote repositories
159 phase set or show the current phase name
159 phase set or show the current phase name
160 pull pull changes from the specified source
160 pull pull changes from the specified source
161 push push changes to the specified destination
161 push push changes to the specified destination
162 recover roll back an interrupted transaction
162 recover roll back an interrupted transaction
163 remove remove the specified files on the next commit
163 remove remove the specified files on the next commit
164 rename rename files; equivalent of copy + remove
164 rename rename files; equivalent of copy + remove
165 resolve redo merges or set/view the merge status of files
165 resolve redo merges or set/view the merge status of files
166 revert restore files to their checkout state
166 revert restore files to their checkout state
167 root print the root (top) of the current working directory
167 root print the root (top) of the current working directory
168 serve start stand-alone webserver
168 serve start stand-alone webserver
169 status show changed files in the working directory
169 status show changed files in the working directory
170 summary summarize working directory state
170 summary summarize working directory state
171 tag add one or more tags for the current or given revision
171 tag add one or more tags for the current or given revision
172 tags list repository tags
172 tags list repository tags
173 unbundle apply one or more changegroup files
173 unbundle apply one or more changegroup files
174 update update working directory (or switch revisions)
174 update update working directory (or switch revisions)
175 verify verify the integrity of the repository
175 verify verify the integrity of the repository
176 version output version and copyright information
176 version output version and copyright information
177
177
178 additional help topics:
178 additional help topics:
179
179
180 config Configuration Files
180 config Configuration Files
181 dates Date Formats
181 dates Date Formats
182 diffs Diff Formats
182 diffs Diff Formats
183 environment Environment Variables
183 environment Environment Variables
184 extensions Using Additional Features
184 extensions Using Additional Features
185 filesets Specifying File Sets
185 filesets Specifying File Sets
186 glossary Glossary
186 glossary Glossary
187 hgignore Syntax for Mercurial Ignore Files
187 hgignore Syntax for Mercurial Ignore Files
188 hgweb Configuring hgweb
188 hgweb Configuring hgweb
189 merge-tools Merge Tools
189 merge-tools Merge Tools
190 multirevs Specifying Multiple Revisions
190 multirevs Specifying Multiple Revisions
191 patterns File Name Patterns
191 patterns File Name Patterns
192 phases Working with Phases
192 phases Working with Phases
193 revisions Specifying Single Revisions
193 revisions Specifying Single Revisions
194 revsets Specifying Revision Sets
194 revsets Specifying Revision Sets
195 subrepos Subrepositories
195 subrepos Subrepositories
196 templating Template Usage
196 templating Template Usage
197 urls URL Paths
197 urls URL Paths
198
198
199 Test extension help:
199 Test extension help:
200 $ hg help extensions --config extensions.rebase= --config extensions.children=
200 $ hg help extensions --config extensions.rebase= --config extensions.children=
201 Using Additional Features
201 Using Additional Features
202 """""""""""""""""""""""""
202 """""""""""""""""""""""""
203
203
204 Mercurial has the ability to add new features through the use of
204 Mercurial has the ability to add new features through the use of
205 extensions. Extensions may add new commands, add options to existing
205 extensions. Extensions may add new commands, add options to existing
206 commands, change the default behavior of commands, or implement hooks.
206 commands, change the default behavior of commands, or implement hooks.
207
207
208 To enable the "foo" extension, either shipped with Mercurial or in the
208 To enable the "foo" extension, either shipped with Mercurial or in the
209 Python search path, create an entry for it in your configuration file,
209 Python search path, create an entry for it in your configuration file,
210 like this:
210 like this:
211
211
212 [extensions]
212 [extensions]
213 foo =
213 foo =
214
214
215 You may also specify the full path to an extension:
215 You may also specify the full path to an extension:
216
216
217 [extensions]
217 [extensions]
218 myfeature = ~/.hgext/myfeature.py
218 myfeature = ~/.hgext/myfeature.py
219
219
220 See "hg help config" for more information on configuration files.
220 See "hg help config" for more information on configuration files.
221
221
222 Extensions are not loaded by default for a variety of reasons: they can
222 Extensions are not loaded by default for a variety of reasons: they can
223 increase startup overhead; they may be meant for advanced usage only; they
223 increase startup overhead; they may be meant for advanced usage only; they
224 may provide potentially dangerous abilities (such as letting you destroy
224 may provide potentially dangerous abilities (such as letting you destroy
225 or modify history); they might not be ready for prime time; or they may
225 or modify history); they might not be ready for prime time; or they may
226 alter some usual behaviors of stock Mercurial. It is thus up to the user
226 alter some usual behaviors of stock Mercurial. It is thus up to the user
227 to activate extensions as needed.
227 to activate extensions as needed.
228
228
229 To explicitly disable an extension enabled in a configuration file of
229 To explicitly disable an extension enabled in a configuration file of
230 broader scope, prepend its path with !:
230 broader scope, prepend its path with !:
231
231
232 [extensions]
232 [extensions]
233 # disabling extension bar residing in /path/to/extension/bar.py
233 # disabling extension bar residing in /path/to/extension/bar.py
234 bar = !/path/to/extension/bar.py
234 bar = !/path/to/extension/bar.py
235 # ditto, but no path was supplied for extension baz
235 # ditto, but no path was supplied for extension baz
236 baz = !
236 baz = !
237
237
238 enabled extensions:
238 enabled extensions:
239
239
240 children command to display child changesets (DEPRECATED)
240 children command to display child changesets (DEPRECATED)
241 rebase command to move sets of revisions to a different ancestor
241 rebase command to move sets of revisions to a different ancestor
242
242
243 disabled extensions:
243 disabled extensions:
244
244
245 acl hooks for controlling repository access
245 acl hooks for controlling repository access
246 blackbox log repository events to a blackbox for debugging
246 blackbox log repository events to a blackbox for debugging
247 bugzilla hooks for integrating with the Bugzilla bug tracker
247 bugzilla hooks for integrating with the Bugzilla bug tracker
248 churn command to display statistics about repository history
248 churn command to display statistics about repository history
249 color colorize output from some commands
249 color colorize output from some commands
250 convert import revisions from foreign VCS repositories into
250 convert import revisions from foreign VCS repositories into
251 Mercurial
251 Mercurial
252 eol automatically manage newlines in repository files
252 eol automatically manage newlines in repository files
253 extdiff command to allow external programs to compare revisions
253 extdiff command to allow external programs to compare revisions
254 factotum http authentication with factotum
254 factotum http authentication with factotum
255 gpg commands to sign and verify changesets
255 gpg commands to sign and verify changesets
256 hgcia hooks for integrating with the CIA.vc notification service
256 hgcia hooks for integrating with the CIA.vc notification service
257 hgk browse the repository in a graphical way
257 hgk browse the repository in a graphical way
258 highlight syntax highlighting for hgweb (requires Pygments)
258 highlight syntax highlighting for hgweb (requires Pygments)
259 histedit interactive history editing
259 histedit interactive history editing
260 keyword expand keywords in tracked files
260 keyword expand keywords in tracked files
261 largefiles track large binary files
261 largefiles track large binary files
262 mq manage a stack of patches
262 mq manage a stack of patches
263 notify hooks for sending email push notifications
263 notify hooks for sending email push notifications
264 pager browse command output with an external pager
264 pager browse command output with an external pager
265 patchbomb command to send changesets as (a series of) patch emails
265 patchbomb command to send changesets as (a series of) patch emails
266 progress show progress bars for some actions
266 progress show progress bars for some actions
267 purge command to delete untracked files from the working
267 purge command to delete untracked files from the working
268 directory
268 directory
269 record commands to interactively select changes for
269 record commands to interactively select changes for
270 commit/qrefresh
270 commit/qrefresh
271 relink recreates hardlinks between repository clones
271 relink recreates hardlinks between repository clones
272 schemes extend schemes with shortcuts to repository swarms
272 schemes extend schemes with shortcuts to repository swarms
273 share share a common history between several working directories
273 share share a common history between several working directories
274 shelve save and restore changes to the working directory
274 shelve save and restore changes to the working directory
275 strip strip changesets and their descendants from history
275 strip strip changesets and their descendants from history
276 transplant command to transplant changesets from another branch
276 transplant command to transplant changesets from another branch
277 win32mbcs allow the use of MBCS paths with problematic encodings
277 win32mbcs allow the use of MBCS paths with problematic encodings
278 zeroconf discover and advertise repositories on the local network
278 zeroconf discover and advertise repositories on the local network
279 Test short command list with verbose option
279 Test short command list with verbose option
280
280
281 $ hg -v help shortlist
281 $ hg -v help shortlist
282 Mercurial Distributed SCM
282 Mercurial Distributed SCM
283
283
284 basic commands:
284 basic commands:
285
285
286 add add the specified files on the next commit
286 add add the specified files on the next commit
287 annotate, blame
287 annotate, blame
288 show changeset information by line for each file
288 show changeset information by line for each file
289 clone make a copy of an existing repository
289 clone make a copy of an existing repository
290 commit, ci commit the specified files or all outstanding changes
290 commit, ci commit the specified files or all outstanding changes
291 diff diff repository (or selected files)
291 diff diff repository (or selected files)
292 export dump the header and diffs for one or more changesets
292 export dump the header and diffs for one or more changesets
293 forget forget the specified files on the next commit
293 forget forget the specified files on the next commit
294 init create a new repository in the given directory
294 init create a new repository in the given directory
295 log, history show revision history of entire repository or files
295 log, history show revision history of entire repository or files
296 merge merge another revision into working directory
296 merge merge another revision into working directory
297 pull pull changes from the specified source
297 pull pull changes from the specified source
298 push push changes to the specified destination
298 push push changes to the specified destination
299 remove, rm remove the specified files on the next commit
299 remove, rm remove the specified files on the next commit
300 serve start stand-alone webserver
300 serve start stand-alone webserver
301 status, st show changed files in the working directory
301 status, st show changed files in the working directory
302 summary, sum summarize working directory state
302 summary, sum summarize working directory state
303 update, up, checkout, co
303 update, up, checkout, co
304 update working directory (or switch revisions)
304 update working directory (or switch revisions)
305
305
306 global options ([+] can be repeated):
306 global options ([+] can be repeated):
307
307
308 -R --repository REPO repository root directory or name of overlay bundle
308 -R --repository REPO repository root directory or name of overlay bundle
309 file
309 file
310 --cwd DIR change working directory
310 --cwd DIR change working directory
311 -y --noninteractive do not prompt, automatically pick the first choice for
311 -y --noninteractive do not prompt, automatically pick the first choice for
312 all prompts
312 all prompts
313 -q --quiet suppress output
313 -q --quiet suppress output
314 -v --verbose enable additional output
314 -v --verbose enable additional output
315 --config CONFIG [+] set/override config option (use 'section.name=value')
315 --config CONFIG [+] set/override config option (use 'section.name=value')
316 --debug enable debugging output
316 --debug enable debugging output
317 --debugger start debugger
317 --debugger start debugger
318 --encoding ENCODE set the charset encoding (default: ascii)
318 --encoding ENCODE set the charset encoding (default: ascii)
319 --encodingmode MODE set the charset encoding mode (default: strict)
319 --encodingmode MODE set the charset encoding mode (default: strict)
320 --traceback always print a traceback on exception
320 --traceback always print a traceback on exception
321 --time time how long the command takes
321 --time time how long the command takes
322 --profile print command execution profile
322 --profile print command execution profile
323 --version output version information and exit
323 --version output version information and exit
324 -h --help display help and exit
324 -h --help display help and exit
325 --hidden consider hidden changesets
325 --hidden consider hidden changesets
326
326
327 (use "hg help" for the full list of commands)
327 (use "hg help" for the full list of commands)
328
328
329 $ hg add -h
329 $ hg add -h
330 hg add [OPTION]... [FILE]...
330 hg add [OPTION]... [FILE]...
331
331
332 add the specified files on the next commit
332 add the specified files on the next commit
333
333
334 Schedule files to be version controlled and added to the repository.
334 Schedule files to be version controlled and added to the repository.
335
335
336 The files will be added to the repository at the next commit. To undo an
336 The files will be added to the repository at the next commit. To undo an
337 add before that, see "hg forget".
337 add before that, see "hg forget".
338
338
339 If no names are given, add all files to the repository.
339 If no names are given, add all files to the repository.
340
340
341 Returns 0 if all files are successfully added.
341 Returns 0 if all files are successfully added.
342
342
343 options ([+] can be repeated):
343 options ([+] can be repeated):
344
344
345 -I --include PATTERN [+] include names matching the given patterns
345 -I --include PATTERN [+] include names matching the given patterns
346 -X --exclude PATTERN [+] exclude names matching the given patterns
346 -X --exclude PATTERN [+] exclude names matching the given patterns
347 -S --subrepos recurse into subrepositories
347 -S --subrepos recurse into subrepositories
348 -n --dry-run do not perform actions, just print output
348 -n --dry-run do not perform actions, just print output
349
349
350 (some details hidden, use --verbose to show complete help)
350 (some details hidden, use --verbose to show complete help)
351
351
352 Verbose help for add
352 Verbose help for add
353
353
354 $ hg add -hv
354 $ hg add -hv
355 hg add [OPTION]... [FILE]...
355 hg add [OPTION]... [FILE]...
356
356
357 add the specified files on the next commit
357 add the specified files on the next commit
358
358
359 Schedule files to be version controlled and added to the repository.
359 Schedule files to be version controlled and added to the repository.
360
360
361 The files will be added to the repository at the next commit. To undo an
361 The files will be added to the repository at the next commit. To undo an
362 add before that, see "hg forget".
362 add before that, see "hg forget".
363
363
364 If no names are given, add all files to the repository.
364 If no names are given, add all files to the repository.
365
365
366 An example showing how new (unknown) files are added automatically by "hg
366 An example showing how new (unknown) files are added automatically by "hg
367 add":
367 add":
368
368
369 $ ls
369 $ ls
370 foo.c
370 foo.c
371 $ hg status
371 $ hg status
372 ? foo.c
372 ? foo.c
373 $ hg add
373 $ hg add
374 adding foo.c
374 adding foo.c
375 $ hg status
375 $ hg status
376 A foo.c
376 A foo.c
377
377
378 Returns 0 if all files are successfully added.
378 Returns 0 if all files are successfully added.
379
379
380 options ([+] can be repeated):
380 options ([+] can be repeated):
381
381
382 -I --include PATTERN [+] include names matching the given patterns
382 -I --include PATTERN [+] include names matching the given patterns
383 -X --exclude PATTERN [+] exclude names matching the given patterns
383 -X --exclude PATTERN [+] exclude names matching the given patterns
384 -S --subrepos recurse into subrepositories
384 -S --subrepos recurse into subrepositories
385 -n --dry-run do not perform actions, just print output
385 -n --dry-run do not perform actions, just print output
386
386
387 global options ([+] can be repeated):
387 global options ([+] can be repeated):
388
388
389 -R --repository REPO repository root directory or name of overlay bundle
389 -R --repository REPO repository root directory or name of overlay bundle
390 file
390 file
391 --cwd DIR change working directory
391 --cwd DIR change working directory
392 -y --noninteractive do not prompt, automatically pick the first choice for
392 -y --noninteractive do not prompt, automatically pick the first choice for
393 all prompts
393 all prompts
394 -q --quiet suppress output
394 -q --quiet suppress output
395 -v --verbose enable additional output
395 -v --verbose enable additional output
396 --config CONFIG [+] set/override config option (use 'section.name=value')
396 --config CONFIG [+] set/override config option (use 'section.name=value')
397 --debug enable debugging output
397 --debug enable debugging output
398 --debugger start debugger
398 --debugger start debugger
399 --encoding ENCODE set the charset encoding (default: ascii)
399 --encoding ENCODE set the charset encoding (default: ascii)
400 --encodingmode MODE set the charset encoding mode (default: strict)
400 --encodingmode MODE set the charset encoding mode (default: strict)
401 --traceback always print a traceback on exception
401 --traceback always print a traceback on exception
402 --time time how long the command takes
402 --time time how long the command takes
403 --profile print command execution profile
403 --profile print command execution profile
404 --version output version information and exit
404 --version output version information and exit
405 -h --help display help and exit
405 -h --help display help and exit
406 --hidden consider hidden changesets
406 --hidden consider hidden changesets
407
407
408 Test help option with version option
408 Test help option with version option
409
409
410 $ hg add -h --version
410 $ hg add -h --version
411 Mercurial Distributed SCM (version *) (glob)
411 Mercurial Distributed SCM (version *) (glob)
412 (see http://mercurial.selenic.com for more information)
412 (see http://mercurial.selenic.com for more information)
413
413
414 Copyright (C) 2005-2014 Matt Mackall and others
414 Copyright (C) 2005-2014 Matt Mackall and others
415 This is free software; see the source for copying conditions. There is NO
415 This is free software; see the source for copying conditions. There is NO
416 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
416 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
417
417
418 $ hg add --skjdfks
418 $ hg add --skjdfks
419 hg add: option --skjdfks not recognized
419 hg add: option --skjdfks not recognized
420 hg add [OPTION]... [FILE]...
420 hg add [OPTION]... [FILE]...
421
421
422 add the specified files on the next commit
422 add the specified files on the next commit
423
423
424 options ([+] can be repeated):
424 options ([+] can be repeated):
425
425
426 -I --include PATTERN [+] include names matching the given patterns
426 -I --include PATTERN [+] include names matching the given patterns
427 -X --exclude PATTERN [+] exclude names matching the given patterns
427 -X --exclude PATTERN [+] exclude names matching the given patterns
428 -S --subrepos recurse into subrepositories
428 -S --subrepos recurse into subrepositories
429 -n --dry-run do not perform actions, just print output
429 -n --dry-run do not perform actions, just print output
430
430
431 (use "hg add -h" to show more help)
431 (use "hg add -h" to show more help)
432 [255]
432 [255]
433
433
434 Test ambiguous command help
434 Test ambiguous command help
435
435
436 $ hg help ad
436 $ hg help ad
437 list of commands:
437 list of commands:
438
438
439 add add the specified files on the next commit
439 add add the specified files on the next commit
440 addremove add all new files, delete all missing files
440 addremove add all new files, delete all missing files
441
441
442 (use "hg help -v ad" to show built-in aliases and global options)
442 (use "hg help -v ad" to show built-in aliases and global options)
443
443
444 Test command without options
444 Test command without options
445
445
446 $ hg help verify
446 $ hg help verify
447 hg verify
447 hg verify
448
448
449 verify the integrity of the repository
449 verify the integrity of the repository
450
450
451 Verify the integrity of the current repository.
451 Verify the integrity of the current repository.
452
452
453 This will perform an extensive check of the repository's integrity,
453 This will perform an extensive check of the repository's integrity,
454 validating the hashes and checksums of each entry in the changelog,
454 validating the hashes and checksums of each entry in the changelog,
455 manifest, and tracked files, as well as the integrity of their crosslinks
455 manifest, and tracked files, as well as the integrity of their crosslinks
456 and indices.
456 and indices.
457
457
458 Please see http://mercurial.selenic.com/wiki/RepositoryCorruption for more
458 Please see http://mercurial.selenic.com/wiki/RepositoryCorruption for more
459 information about recovery from corruption of the repository.
459 information about recovery from corruption of the repository.
460
460
461 Returns 0 on success, 1 if errors are encountered.
461 Returns 0 on success, 1 if errors are encountered.
462
462
463 (some details hidden, use --verbose to show complete help)
463 (some details hidden, use --verbose to show complete help)
464
464
465 $ hg help diff
465 $ hg help diff
466 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
466 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
467
467
468 diff repository (or selected files)
468 diff repository (or selected files)
469
469
470 Show differences between revisions for the specified files.
470 Show differences between revisions for the specified files.
471
471
472 Differences between files are shown using the unified diff format.
472 Differences between files are shown using the unified diff format.
473
473
474 Note:
474 Note:
475 diff may generate unexpected results for merges, as it will default to
475 diff may generate unexpected results for merges, as it will default to
476 comparing against the working directory's first parent changeset if no
476 comparing against the working directory's first parent changeset if no
477 revisions are specified.
477 revisions are specified.
478
478
479 When two revision arguments are given, then changes are shown between
479 When two revision arguments are given, then changes are shown between
480 those revisions. If only one revision is specified then that revision is
480 those revisions. If only one revision is specified then that revision is
481 compared to the working directory, and, when no revisions are specified,
481 compared to the working directory, and, when no revisions are specified,
482 the working directory files are compared to its parent.
482 the working directory files are compared to its parent.
483
483
484 Alternatively you can specify -c/--change with a revision to see the
484 Alternatively you can specify -c/--change with a revision to see the
485 changes in that changeset relative to its first parent.
485 changes in that changeset relative to its first parent.
486
486
487 Without the -a/--text option, diff will avoid generating diffs of files it
487 Without the -a/--text option, diff will avoid generating diffs of files it
488 detects as binary. With -a, diff will generate a diff anyway, probably
488 detects as binary. With -a, diff will generate a diff anyway, probably
489 with undesirable results.
489 with undesirable results.
490
490
491 Use the -g/--git option to generate diffs in the git extended diff format.
491 Use the -g/--git option to generate diffs in the git extended diff format.
492 For more information, read "hg help diffs".
492 For more information, read "hg help diffs".
493
493
494 Returns 0 on success.
494 Returns 0 on success.
495
495
496 options ([+] can be repeated):
496 options ([+] can be repeated):
497
497
498 -r --rev REV [+] revision
498 -r --rev REV [+] revision
499 -c --change REV change made by revision
499 -c --change REV change made by revision
500 -a --text treat all files as text
500 -a --text treat all files as text
501 -g --git use git extended diff format
501 -g --git use git extended diff format
502 --nodates omit dates from diff headers
502 --nodates omit dates from diff headers
503 --noprefix omit a/ and b/ prefixes from filenames
503 --noprefix omit a/ and b/ prefixes from filenames
504 -p --show-function show which function each change is in
504 -p --show-function show which function each change is in
505 --reverse produce a diff that undoes the changes
505 --reverse produce a diff that undoes the changes
506 -w --ignore-all-space ignore white space when comparing lines
506 -w --ignore-all-space ignore white space when comparing lines
507 -b --ignore-space-change ignore changes in the amount of white space
507 -b --ignore-space-change ignore changes in the amount of white space
508 -B --ignore-blank-lines ignore changes whose lines are all blank
508 -B --ignore-blank-lines ignore changes whose lines are all blank
509 -U --unified NUM number of lines of context to show
509 -U --unified NUM number of lines of context to show
510 --stat output diffstat-style summary of changes
510 --stat output diffstat-style summary of changes
511 -I --include PATTERN [+] include names matching the given patterns
511 -I --include PATTERN [+] include names matching the given patterns
512 -X --exclude PATTERN [+] exclude names matching the given patterns
512 -X --exclude PATTERN [+] exclude names matching the given patterns
513 -S --subrepos recurse into subrepositories
513 -S --subrepos recurse into subrepositories
514
514
515 (some details hidden, use --verbose to show complete help)
515 (some details hidden, use --verbose to show complete help)
516
516
517 $ hg help status
517 $ hg help status
518 hg status [OPTION]... [FILE]...
518 hg status [OPTION]... [FILE]...
519
519
520 aliases: st
520 aliases: st
521
521
522 show changed files in the working directory
522 show changed files in the working directory
523
523
524 Show status of files in the repository. If names are given, only files
524 Show status of files in the repository. If names are given, only files
525 that match are shown. Files that are clean or ignored or the source of a
525 that match are shown. Files that are clean or ignored or the source of a
526 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
526 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
527 -C/--copies or -A/--all are given. Unless options described with "show
527 -C/--copies or -A/--all are given. Unless options described with "show
528 only ..." are given, the options -mardu are used.
528 only ..." are given, the options -mardu are used.
529
529
530 Option -q/--quiet hides untracked (unknown and ignored) files unless
530 Option -q/--quiet hides untracked (unknown and ignored) files unless
531 explicitly requested with -u/--unknown or -i/--ignored.
531 explicitly requested with -u/--unknown or -i/--ignored.
532
532
533 Note:
533 Note:
534 status may appear to disagree with diff if permissions have changed or
534 status may appear to disagree with diff if permissions have changed or
535 a merge has occurred. The standard diff format does not report
535 a merge has occurred. The standard diff format does not report
536 permission changes and diff only reports changes relative to one merge
536 permission changes and diff only reports changes relative to one merge
537 parent.
537 parent.
538
538
539 If one revision is given, it is used as the base revision. If two
539 If one revision is given, it is used as the base revision. If two
540 revisions are given, the differences between them are shown. The --change
540 revisions are given, the differences between them are shown. The --change
541 option can also be used as a shortcut to list the changed files of a
541 option can also be used as a shortcut to list the changed files of a
542 revision from its first parent.
542 revision from its first parent.
543
543
544 The codes used to show the status of files are:
544 The codes used to show the status of files are:
545
545
546 M = modified
546 M = modified
547 A = added
547 A = added
548 R = removed
548 R = removed
549 C = clean
549 C = clean
550 ! = missing (deleted by non-hg command, but still tracked)
550 ! = missing (deleted by non-hg command, but still tracked)
551 ? = not tracked
551 ? = not tracked
552 I = ignored
552 I = ignored
553 = origin of the previous file (with --copies)
553 = origin of the previous file (with --copies)
554
554
555 Returns 0 on success.
555 Returns 0 on success.
556
556
557 options ([+] can be repeated):
557 options ([+] can be repeated):
558
558
559 -A --all show status of all files
559 -A --all show status of all files
560 -m --modified show only modified files
560 -m --modified show only modified files
561 -a --added show only added files
561 -a --added show only added files
562 -r --removed show only removed files
562 -r --removed show only removed files
563 -d --deleted show only deleted (but tracked) files
563 -d --deleted show only deleted (but tracked) files
564 -c --clean show only files without changes
564 -c --clean show only files without changes
565 -u --unknown show only unknown (not tracked) files
565 -u --unknown show only unknown (not tracked) files
566 -i --ignored show only ignored files
566 -i --ignored show only ignored files
567 -n --no-status hide status prefix
567 -n --no-status hide status prefix
568 -C --copies show source of copied files
568 -C --copies show source of copied files
569 -0 --print0 end filenames with NUL, for use with xargs
569 -0 --print0 end filenames with NUL, for use with xargs
570 --rev REV [+] show difference from revision
570 --rev REV [+] show difference from revision
571 --change REV list the changed files of a revision
571 --change REV list the changed files of a revision
572 -I --include PATTERN [+] include names matching the given patterns
572 -I --include PATTERN [+] include names matching the given patterns
573 -X --exclude PATTERN [+] exclude names matching the given patterns
573 -X --exclude PATTERN [+] exclude names matching the given patterns
574 -S --subrepos recurse into subrepositories
574 -S --subrepos recurse into subrepositories
575
575
576 (some details hidden, use --verbose to show complete help)
576 (some details hidden, use --verbose to show complete help)
577
577
578 $ hg -q help status
578 $ hg -q help status
579 hg status [OPTION]... [FILE]...
579 hg status [OPTION]... [FILE]...
580
580
581 show changed files in the working directory
581 show changed files in the working directory
582
582
583 $ hg help foo
583 $ hg help foo
584 abort: no such help topic: foo
584 abort: no such help topic: foo
585 (try "hg help --keyword foo")
585 (try "hg help --keyword foo")
586 [255]
586 [255]
587
587
588 $ hg skjdfks
588 $ hg skjdfks
589 hg: unknown command 'skjdfks'
589 hg: unknown command 'skjdfks'
590 Mercurial Distributed SCM
590 Mercurial Distributed SCM
591
591
592 basic commands:
592 basic commands:
593
593
594 add add the specified files on the next commit
594 add add the specified files on the next commit
595 annotate show changeset information by line for each file
595 annotate show changeset information by line for each file
596 clone make a copy of an existing repository
596 clone make a copy of an existing repository
597 commit commit the specified files or all outstanding changes
597 commit commit the specified files or all outstanding changes
598 diff diff repository (or selected files)
598 diff diff repository (or selected files)
599 export dump the header and diffs for one or more changesets
599 export dump the header and diffs for one or more changesets
600 forget forget the specified files on the next commit
600 forget forget the specified files on the next commit
601 init create a new repository in the given directory
601 init create a new repository in the given directory
602 log show revision history of entire repository or files
602 log show revision history of entire repository or files
603 merge merge another revision into working directory
603 merge merge another revision into working directory
604 pull pull changes from the specified source
604 pull pull changes from the specified source
605 push push changes to the specified destination
605 push push changes to the specified destination
606 remove remove the specified files on the next commit
606 remove remove the specified files on the next commit
607 serve start stand-alone webserver
607 serve start stand-alone webserver
608 status show changed files in the working directory
608 status show changed files in the working directory
609 summary summarize working directory state
609 summary summarize working directory state
610 update update working directory (or switch revisions)
610 update update working directory (or switch revisions)
611
611
612 (use "hg help" for the full list of commands or "hg -v" for details)
612 (use "hg help" for the full list of commands or "hg -v" for details)
613 [255]
613 [255]
614
614
615
615
616 $ cat > helpext.py <<EOF
616 $ cat > helpext.py <<EOF
617 > import os
617 > import os
618 > from mercurial import cmdutil, commands
618 > from mercurial import cmdutil, commands
619 >
619 >
620 > cmdtable = {}
620 > cmdtable = {}
621 > command = cmdutil.command(cmdtable)
621 > command = cmdutil.command(cmdtable)
622 >
622 >
623 > @command('nohelp',
623 > @command('nohelp',
624 > [('', 'longdesc', 3, 'x'*90),
624 > [('', 'longdesc', 3, 'x'*90),
625 > ('n', '', None, 'normal desc'),
625 > ('n', '', None, 'normal desc'),
626 > ('', 'newline', '', 'line1\nline2')],
626 > ('', 'newline', '', 'line1\nline2')],
627 > 'hg nohelp',
627 > 'hg nohelp',
628 > norepo=True)
628 > norepo=True)
629 > @command('debugoptDEP', [('', 'dopt', None, 'option is DEPRECATED')])
629 > @command('debugoptDEP', [('', 'dopt', None, 'option is DEPRECATED')])
630 > def nohelp(ui, *args, **kwargs):
630 > def nohelp(ui, *args, **kwargs):
631 > pass
631 > pass
632 >
632 >
633 > EOF
633 > EOF
634 $ echo '[extensions]' >> $HGRCPATH
634 $ echo '[extensions]' >> $HGRCPATH
635 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH
635 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH
636
636
637 Test command with no help text
637 Test command with no help text
638
638
639 $ hg help nohelp
639 $ hg help nohelp
640 hg nohelp
640 hg nohelp
641
641
642 (no help text available)
642 (no help text available)
643
643
644 options:
644 options:
645
645
646 --longdesc VALUE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
646 --longdesc VALUE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
647 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (default: 3)
647 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (default: 3)
648 -n -- normal desc
648 -n -- normal desc
649 --newline VALUE line1 line2
649 --newline VALUE line1 line2
650
650
651 (some details hidden, use --verbose to show complete help)
651 (some details hidden, use --verbose to show complete help)
652
652
653 $ hg help -k nohelp
653 $ hg help -k nohelp
654 Commands:
654 Commands:
655
655
656 nohelp hg nohelp
656 nohelp hg nohelp
657
657
658 Extension Commands:
658 Extension Commands:
659
659
660 nohelp (no help text available)
660 nohelp (no help text available)
661
661
662 Test that default list of commands omits extension commands
662 Test that default list of commands omits extension commands
663
663
664 $ hg help
664 $ hg help
665 Mercurial Distributed SCM
665 Mercurial Distributed SCM
666
666
667 list of commands:
667 list of commands:
668
668
669 add add the specified files on the next commit
669 add add the specified files on the next commit
670 addremove add all new files, delete all missing files
670 addremove add all new files, delete all missing files
671 annotate show changeset information by line for each file
671 annotate show changeset information by line for each file
672 archive create an unversioned archive of a repository revision
672 archive create an unversioned archive of a repository revision
673 backout reverse effect of earlier changeset
673 backout reverse effect of earlier changeset
674 bisect subdivision search of changesets
674 bisect subdivision search of changesets
675 bookmarks create a new bookmark or list existing bookmarks
675 bookmarks create a new bookmark or list existing bookmarks
676 branch set or show the current branch name
676 branch set or show the current branch name
677 branches list repository named branches
677 branches list repository named branches
678 bundle create a changegroup file
678 bundle create a changegroup file
679 cat output the current or given revision of files
679 cat output the current or given revision of files
680 clone make a copy of an existing repository
680 clone make a copy of an existing repository
681 commit commit the specified files or all outstanding changes
681 commit commit the specified files or all outstanding changes
682 config show combined config settings from all hgrc files
682 config show combined config settings from all hgrc files
683 copy mark files as copied for the next commit
683 copy mark files as copied for the next commit
684 diff diff repository (or selected files)
684 diff diff repository (or selected files)
685 export dump the header and diffs for one or more changesets
685 export dump the header and diffs for one or more changesets
686 files list tracked files
686 files list tracked files
687 forget forget the specified files on the next commit
687 forget forget the specified files on the next commit
688 graft copy changes from other branches onto the current branch
688 graft copy changes from other branches onto the current branch
689 grep search for a pattern in specified files and revisions
689 grep search for a pattern in specified files and revisions
690 heads show branch heads
690 heads show branch heads
691 help show help for a given topic or a help overview
691 help show help for a given topic or a help overview
692 identify identify the working copy or specified revision
692 identify identify the working copy or specified revision
693 import import an ordered set of patches
693 import import an ordered set of patches
694 incoming show new changesets found in source
694 incoming show new changesets found in source
695 init create a new repository in the given directory
695 init create a new repository in the given directory
696 log show revision history of entire repository or files
696 log show revision history of entire repository or files
697 manifest output the current or given revision of the project manifest
697 manifest output the current or given revision of the project manifest
698 merge merge another revision into working directory
698 merge merge another revision into working directory
699 outgoing show changesets not found in the destination
699 outgoing show changesets not found in the destination
700 paths show aliases for remote repositories
700 paths show aliases for remote repositories
701 phase set or show the current phase name
701 phase set or show the current phase name
702 pull pull changes from the specified source
702 pull pull changes from the specified source
703 push push changes to the specified destination
703 push push changes to the specified destination
704 recover roll back an interrupted transaction
704 recover roll back an interrupted transaction
705 remove remove the specified files on the next commit
705 remove remove the specified files on the next commit
706 rename rename files; equivalent of copy + remove
706 rename rename files; equivalent of copy + remove
707 resolve redo merges or set/view the merge status of files
707 resolve redo merges or set/view the merge status of files
708 revert restore files to their checkout state
708 revert restore files to their checkout state
709 root print the root (top) of the current working directory
709 root print the root (top) of the current working directory
710 serve start stand-alone webserver
710 serve start stand-alone webserver
711 status show changed files in the working directory
711 status show changed files in the working directory
712 summary summarize working directory state
712 summary summarize working directory state
713 tag add one or more tags for the current or given revision
713 tag add one or more tags for the current or given revision
714 tags list repository tags
714 tags list repository tags
715 unbundle apply one or more changegroup files
715 unbundle apply one or more changegroup files
716 update update working directory (or switch revisions)
716 update update working directory (or switch revisions)
717 verify verify the integrity of the repository
717 verify verify the integrity of the repository
718 version output version and copyright information
718 version output version and copyright information
719
719
720 enabled extensions:
720 enabled extensions:
721
721
722 helpext (no help text available)
722 helpext (no help text available)
723
723
724 additional help topics:
724 additional help topics:
725
725
726 config Configuration Files
726 config Configuration Files
727 dates Date Formats
727 dates Date Formats
728 diffs Diff Formats
728 diffs Diff Formats
729 environment Environment Variables
729 environment Environment Variables
730 extensions Using Additional Features
730 extensions Using Additional Features
731 filesets Specifying File Sets
731 filesets Specifying File Sets
732 glossary Glossary
732 glossary Glossary
733 hgignore Syntax for Mercurial Ignore Files
733 hgignore Syntax for Mercurial Ignore Files
734 hgweb Configuring hgweb
734 hgweb Configuring hgweb
735 merge-tools Merge Tools
735 merge-tools Merge Tools
736 multirevs Specifying Multiple Revisions
736 multirevs Specifying Multiple Revisions
737 patterns File Name Patterns
737 patterns File Name Patterns
738 phases Working with Phases
738 phases Working with Phases
739 revisions Specifying Single Revisions
739 revisions Specifying Single Revisions
740 revsets Specifying Revision Sets
740 revsets Specifying Revision Sets
741 subrepos Subrepositories
741 subrepos Subrepositories
742 templating Template Usage
742 templating Template Usage
743 urls URL Paths
743 urls URL Paths
744
744
745 (use "hg help -v" to show built-in aliases and global options)
745 (use "hg help -v" to show built-in aliases and global options)
746
746
747
747
748 Test list of internal help commands
748 Test list of internal help commands
749
749
750 $ hg help debug
750 $ hg help debug
751 debug commands (internal and unsupported):
751 debug commands (internal and unsupported):
752
752
753 debugancestor
753 debugancestor
754 find the ancestor revision of two revisions in a given index
754 find the ancestor revision of two revisions in a given index
755 debugbuilddag
755 debugbuilddag
756 builds a repo with a given DAG from scratch in the current
756 builds a repo with a given DAG from scratch in the current
757 empty repo
757 empty repo
758 debugbundle lists the contents of a bundle
758 debugbundle lists the contents of a bundle
759 debugcheckstate
759 debugcheckstate
760 validate the correctness of the current dirstate
760 validate the correctness of the current dirstate
761 debugcommands
761 debugcommands
762 list all available commands and options
762 list all available commands and options
763 debugcomplete
763 debugcomplete
764 returns the completion list associated with the given command
764 returns the completion list associated with the given command
765 debugdag format the changelog or an index DAG as a concise textual
765 debugdag format the changelog or an index DAG as a concise textual
766 description
766 description
767 debugdata dump the contents of a data file revision
767 debugdata dump the contents of a data file revision
768 debugdate parse and display a date
768 debugdate parse and display a date
769 debugdirstate
769 debugdirstate
770 show the contents of the current dirstate
770 show the contents of the current dirstate
771 debugdiscovery
771 debugdiscovery
772 runs the changeset discovery protocol in isolation
772 runs the changeset discovery protocol in isolation
773 debugfileset parse and apply a fileset specification
773 debugfileset parse and apply a fileset specification
774 debugfsinfo show information detected about current filesystem
774 debugfsinfo show information detected about current filesystem
775 debuggetbundle
775 debuggetbundle
776 retrieves a bundle from a repo
776 retrieves a bundle from a repo
777 debugignore display the combined ignore pattern
777 debugignore display the combined ignore pattern
778 debugindex dump the contents of an index file
778 debugindex dump the contents of an index file
779 debugindexdot
779 debugindexdot
780 dump an index DAG as a graphviz dot file
780 dump an index DAG as a graphviz dot file
781 debuginstall test Mercurial installation
781 debuginstall test Mercurial installation
782 debugknown test whether node ids are known to a repo
782 debugknown test whether node ids are known to a repo
783 debuglabelcomplete
783 debuglabelcomplete
784 complete "labels" - tags, open branch names, bookmark names
784 complete "labels" - tags, open branch names, bookmark names
785 debuglocks show or modify state of locks
785 debuglocks show or modify state of locks
786 debugobsolete
786 debugobsolete
787 create arbitrary obsolete marker
787 create arbitrary obsolete marker
788 debugoptDEP (no help text available)
788 debugoptDEP (no help text available)
789 debugpathcomplete
789 debugpathcomplete
790 complete part or all of a tracked path
790 complete part or all of a tracked path
791 debugpushkey access the pushkey key/value protocol
791 debugpushkey access the pushkey key/value protocol
792 debugpvec (no help text available)
792 debugpvec (no help text available)
793 debugrebuilddirstate
793 debugrebuilddirstate
794 rebuild the dirstate as it would look like for the given
794 rebuild the dirstate as it would look like for the given
795 revision
795 revision
796 debugrename dump rename information
796 debugrename dump rename information
797 debugrevlog show data and statistics about a revlog
797 debugrevlog show data and statistics about a revlog
798 debugrevspec parse and apply a revision specification
798 debugrevspec parse and apply a revision specification
799 debugsetparents
799 debugsetparents
800 manually set the parents of the current working directory
800 manually set the parents of the current working directory
801 debugsub (no help text available)
801 debugsub (no help text available)
802 debugsuccessorssets
802 debugsuccessorssets
803 show set of successors for revision
803 show set of successors for revision
804 debugwalk show how files match on given patterns
804 debugwalk show how files match on given patterns
805 debugwireargs
805 debugwireargs
806 (no help text available)
806 (no help text available)
807
807
808 (use "hg help -v debug" to show built-in aliases and global options)
808 (use "hg help -v debug" to show built-in aliases and global options)
809
809
810
810
811 Test list of commands with command with no help text
811 Test list of commands with command with no help text
812
812
813 $ hg help helpext
813 $ hg help helpext
814 helpext extension - no help text available
814 helpext extension - no help text available
815
815
816 list of commands:
816 list of commands:
817
817
818 nohelp (no help text available)
818 nohelp (no help text available)
819
819
820 (use "hg help -v helpext" to show built-in aliases and global options)
820 (use "hg help -v helpext" to show built-in aliases and global options)
821
821
822
822
823 test deprecated option is hidden in command help
823 test deprecated option is hidden in command help
824 $ hg help debugoptDEP
824 $ hg help debugoptDEP
825 hg debugoptDEP
825 hg debugoptDEP
826
826
827 (no help text available)
827 (no help text available)
828
828
829 options:
829 options:
830
830
831 (some details hidden, use --verbose to show complete help)
831 (some details hidden, use --verbose to show complete help)
832
832
833 test deprecated option is shown with -v
833 test deprecated option is shown with -v
834 $ hg help -v debugoptDEP | grep dopt
834 $ hg help -v debugoptDEP | grep dopt
835 --dopt option is DEPRECATED
835 --dopt option is DEPRECATED
836
836
837 #if gettext
837 #if gettext
838 test deprecated option is hidden with translation with untranslated description
838 test deprecated option is hidden with translation with untranslated description
839 (use many globy for not failing on changed transaction)
839 (use many globy for not failing on changed transaction)
840 $ LANGUAGE=sv hg help debugoptDEP
840 $ LANGUAGE=sv hg help debugoptDEP
841 hg debugoptDEP
841 hg debugoptDEP
842
842
843 (*) (glob)
843 (*) (glob)
844
844
845 options:
845 options:
846
846
847 (some details hidden, use --verbose to show complete help)
847 (some details hidden, use --verbose to show complete help)
848 #endif
848 #endif
849
849
850 Test commands that collide with topics (issue4240)
850 Test commands that collide with topics (issue4240)
851
851
852 $ hg config -hq
852 $ hg config -hq
853 hg config [-u] [NAME]...
853 hg config [-u] [NAME]...
854
854
855 show combined config settings from all hgrc files
855 show combined config settings from all hgrc files
856 $ hg showconfig -hq
856 $ hg showconfig -hq
857 hg config [-u] [NAME]...
857 hg config [-u] [NAME]...
858
858
859 show combined config settings from all hgrc files
859 show combined config settings from all hgrc files
860
860
861 Test a help topic
861 Test a help topic
862
862
863 $ hg help revs
863 $ hg help revs
864 Specifying Single Revisions
864 Specifying Single Revisions
865 """""""""""""""""""""""""""
865 """""""""""""""""""""""""""
866
866
867 Mercurial supports several ways to specify individual revisions.
867 Mercurial supports several ways to specify individual revisions.
868
868
869 A plain integer is treated as a revision number. Negative integers are
869 A plain integer is treated as a revision number. Negative integers are
870 treated as sequential offsets from the tip, with -1 denoting the tip, -2
870 treated as sequential offsets from the tip, with -1 denoting the tip, -2
871 denoting the revision prior to the tip, and so forth.
871 denoting the revision prior to the tip, and so forth.
872
872
873 A 40-digit hexadecimal string is treated as a unique revision identifier.
873 A 40-digit hexadecimal string is treated as a unique revision identifier.
874
874
875 A hexadecimal string less than 40 characters long is treated as a unique
875 A hexadecimal string less than 40 characters long is treated as a unique
876 revision identifier and is referred to as a short-form identifier. A
876 revision identifier and is referred to as a short-form identifier. A
877 short-form identifier is only valid if it is the prefix of exactly one
877 short-form identifier is only valid if it is the prefix of exactly one
878 full-length identifier.
878 full-length identifier.
879
879
880 Any other string is treated as a bookmark, tag, or branch name. A bookmark
880 Any other string is treated as a bookmark, tag, or branch name. A bookmark
881 is a movable pointer to a revision. A tag is a permanent name associated
881 is a movable pointer to a revision. A tag is a permanent name associated
882 with a revision. A branch name denotes the tipmost open branch head of
882 with a revision. A branch name denotes the tipmost open branch head of
883 that branch - or if they are all closed, the tipmost closed head of the
883 that branch - or if they are all closed, the tipmost closed head of the
884 branch. Bookmark, tag, and branch names must not contain the ":"
884 branch. Bookmark, tag, and branch names must not contain the ":"
885 character.
885 character.
886
886
887 The reserved name "tip" always identifies the most recent revision.
887 The reserved name "tip" always identifies the most recent revision.
888
888
889 The reserved name "null" indicates the null revision. This is the revision
889 The reserved name "null" indicates the null revision. This is the revision
890 of an empty repository, and the parent of revision 0.
890 of an empty repository, and the parent of revision 0.
891
891
892 The reserved name "." indicates the working directory parent. If no
892 The reserved name "." indicates the working directory parent. If no
893 working directory is checked out, it is equivalent to null. If an
893 working directory is checked out, it is equivalent to null. If an
894 uncommitted merge is in progress, "." is the revision of the first parent.
894 uncommitted merge is in progress, "." is the revision of the first parent.
895
895
896 Test templating help
896 Test templating help
897
897
898 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) '
898 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) '
899 desc String. The text of the changeset description.
899 desc String. The text of the changeset description.
900 diffstat String. Statistics of changes with the following format:
900 diffstat String. Statistics of changes with the following format:
901 firstline Any text. Returns the first line of text.
901 firstline Any text. Returns the first line of text.
902 nonempty Any text. Returns '(none)' if the string is empty.
902 nonempty Any text. Returns '(none)' if the string is empty.
903
903
904 Test help hooks
904 Test help hooks
905
905
906 $ cat > helphook1.py <<EOF
906 $ cat > helphook1.py <<EOF
907 > from mercurial import help
907 > from mercurial import help
908 >
908 >
909 > def rewrite(topic, doc):
909 > def rewrite(topic, doc):
910 > return doc + '\nhelphook1\n'
910 > return doc + '\nhelphook1\n'
911 >
911 >
912 > def extsetup(ui):
912 > def extsetup(ui):
913 > help.addtopichook('revsets', rewrite)
913 > help.addtopichook('revsets', rewrite)
914 > EOF
914 > EOF
915 $ cat > helphook2.py <<EOF
915 $ cat > helphook2.py <<EOF
916 > from mercurial import help
916 > from mercurial import help
917 >
917 >
918 > def rewrite(topic, doc):
918 > def rewrite(topic, doc):
919 > return doc + '\nhelphook2\n'
919 > return doc + '\nhelphook2\n'
920 >
920 >
921 > def extsetup(ui):
921 > def extsetup(ui):
922 > help.addtopichook('revsets', rewrite)
922 > help.addtopichook('revsets', rewrite)
923 > EOF
923 > EOF
924 $ echo '[extensions]' >> $HGRCPATH
924 $ echo '[extensions]' >> $HGRCPATH
925 $ echo "helphook1 = `pwd`/helphook1.py" >> $HGRCPATH
925 $ echo "helphook1 = `pwd`/helphook1.py" >> $HGRCPATH
926 $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH
926 $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH
927 $ hg help revsets | grep helphook
927 $ hg help revsets | grep helphook
928 helphook1
928 helphook1
929 helphook2
929 helphook2
930
930
931 Test keyword search help
931 Test keyword search help
932
932
933 $ cat > prefixedname.py <<EOF
933 $ cat > prefixedname.py <<EOF
934 > '''matched against word "clone"
934 > '''matched against word "clone"
935 > '''
935 > '''
936 > EOF
936 > EOF
937 $ echo '[extensions]' >> $HGRCPATH
937 $ echo '[extensions]' >> $HGRCPATH
938 $ echo "dot.dot.prefixedname = `pwd`/prefixedname.py" >> $HGRCPATH
938 $ echo "dot.dot.prefixedname = `pwd`/prefixedname.py" >> $HGRCPATH
939 $ hg help -k clone
939 $ hg help -k clone
940 Topics:
940 Topics:
941
941
942 config Configuration Files
942 config Configuration Files
943 extensions Using Additional Features
943 extensions Using Additional Features
944 glossary Glossary
944 glossary Glossary
945 phases Working with Phases
945 phases Working with Phases
946 subrepos Subrepositories
946 subrepos Subrepositories
947 urls URL Paths
947 urls URL Paths
948
948
949 Commands:
949 Commands:
950
950
951 bookmarks create a new bookmark or list existing bookmarks
951 bookmarks create a new bookmark or list existing bookmarks
952 clone make a copy of an existing repository
952 clone make a copy of an existing repository
953 paths show aliases for remote repositories
953 paths show aliases for remote repositories
954 update update working directory (or switch revisions)
954 update update working directory (or switch revisions)
955
955
956 Extensions:
956 Extensions:
957
957
958 prefixedname matched against word "clone"
958 prefixedname matched against word "clone"
959 relink recreates hardlinks between repository clones
959 relink recreates hardlinks between repository clones
960
960
961 Extension Commands:
961 Extension Commands:
962
962
963 qclone clone main and patch repository at same time
963 qclone clone main and patch repository at same time
964
964
965 Test unfound topic
965 Test unfound topic
966
966
967 $ hg help nonexistingtopicthatwillneverexisteverever
967 $ hg help nonexistingtopicthatwillneverexisteverever
968 abort: no such help topic: nonexistingtopicthatwillneverexisteverever
968 abort: no such help topic: nonexistingtopicthatwillneverexisteverever
969 (try "hg help --keyword nonexistingtopicthatwillneverexisteverever")
969 (try "hg help --keyword nonexistingtopicthatwillneverexisteverever")
970 [255]
970 [255]
971
971
972 Test unfound keyword
972 Test unfound keyword
973
973
974 $ hg help --keyword nonexistingwordthatwillneverexisteverever
974 $ hg help --keyword nonexistingwordthatwillneverexisteverever
975 abort: no matches
975 abort: no matches
976 (try "hg help" for a list of topics)
976 (try "hg help" for a list of topics)
977 [255]
977 [255]
978
978
979 Test omit indicating for help
979 Test omit indicating for help
980
980
981 $ cat > addverboseitems.py <<EOF
981 $ cat > addverboseitems.py <<EOF
982 > '''extension to test omit indicating.
982 > '''extension to test omit indicating.
983 >
983 >
984 > This paragraph is never omitted (for extension)
984 > This paragraph is never omitted (for extension)
985 >
985 >
986 > .. container:: verbose
986 > .. container:: verbose
987 >
987 >
988 > This paragraph is omitted,
988 > This paragraph is omitted,
989 > if :hg:\`help\` is invoked witout \`\`-v\`\` (for extension)
989 > if :hg:\`help\` is invoked without \`\`-v\`\` (for extension)
990 >
990 >
991 > This paragraph is never omitted, too (for extension)
991 > This paragraph is never omitted, too (for extension)
992 > '''
992 > '''
993 >
993 >
994 > from mercurial import help, commands
994 > from mercurial import help, commands
995 > testtopic = """This paragraph is never omitted (for topic).
995 > testtopic = """This paragraph is never omitted (for topic).
996 >
996 >
997 > .. container:: verbose
997 > .. container:: verbose
998 >
998 >
999 > This paragraph is omitted,
999 > This paragraph is omitted,
1000 > if :hg:\`help\` is invoked witout \`\`-v\`\` (for topic)
1000 > if :hg:\`help\` is invoked without \`\`-v\`\` (for topic)
1001 >
1001 >
1002 > This paragraph is never omitted, too (for topic)
1002 > This paragraph is never omitted, too (for topic)
1003 > """
1003 > """
1004 > def extsetup(ui):
1004 > def extsetup(ui):
1005 > help.helptable.append((["topic-containing-verbose"],
1005 > help.helptable.append((["topic-containing-verbose"],
1006 > "This is the topic to test omit indicating.",
1006 > "This is the topic to test omit indicating.",
1007 > lambda : testtopic))
1007 > lambda : testtopic))
1008 > EOF
1008 > EOF
1009 $ echo '[extensions]' >> $HGRCPATH
1009 $ echo '[extensions]' >> $HGRCPATH
1010 $ echo "addverboseitems = `pwd`/addverboseitems.py" >> $HGRCPATH
1010 $ echo "addverboseitems = `pwd`/addverboseitems.py" >> $HGRCPATH
1011 $ hg help addverboseitems
1011 $ hg help addverboseitems
1012 addverboseitems extension - extension to test omit indicating.
1012 addverboseitems extension - extension to test omit indicating.
1013
1013
1014 This paragraph is never omitted (for extension)
1014 This paragraph is never omitted (for extension)
1015
1015
1016 This paragraph is never omitted, too (for extension)
1016 This paragraph is never omitted, too (for extension)
1017
1017
1018 (some details hidden, use --verbose to show complete help)
1018 (some details hidden, use --verbose to show complete help)
1019
1019
1020 no commands defined
1020 no commands defined
1021 $ hg help -v addverboseitems
1021 $ hg help -v addverboseitems
1022 addverboseitems extension - extension to test omit indicating.
1022 addverboseitems extension - extension to test omit indicating.
1023
1023
1024 This paragraph is never omitted (for extension)
1024 This paragraph is never omitted (for extension)
1025
1025
1026 This paragraph is omitted, if "hg help" is invoked witout "-v" (for extension)
1026 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1027 extension)
1027
1028
1028 This paragraph is never omitted, too (for extension)
1029 This paragraph is never omitted, too (for extension)
1029
1030
1030 no commands defined
1031 no commands defined
1031 $ hg help topic-containing-verbose
1032 $ hg help topic-containing-verbose
1032 This is the topic to test omit indicating.
1033 This is the topic to test omit indicating.
1033 """"""""""""""""""""""""""""""""""""""""""
1034 """"""""""""""""""""""""""""""""""""""""""
1034
1035
1035 This paragraph is never omitted (for topic).
1036 This paragraph is never omitted (for topic).
1036
1037
1037 This paragraph is never omitted, too (for topic)
1038 This paragraph is never omitted, too (for topic)
1038
1039
1039 (some details hidden, use --verbose to show complete help)
1040 (some details hidden, use --verbose to show complete help)
1040 $ hg help -v topic-containing-verbose
1041 $ hg help -v topic-containing-verbose
1041 This is the topic to test omit indicating.
1042 This is the topic to test omit indicating.
1042 """"""""""""""""""""""""""""""""""""""""""
1043 """"""""""""""""""""""""""""""""""""""""""
1043
1044
1044 This paragraph is never omitted (for topic).
1045 This paragraph is never omitted (for topic).
1045
1046
1046 This paragraph is omitted, if "hg help" is invoked witout "-v" (for topic)
1047 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1048 topic)
1047
1049
1048 This paragraph is never omitted, too (for topic)
1050 This paragraph is never omitted, too (for topic)
1049
1051
1050 Test section lookup
1052 Test section lookup
1051
1053
1052 $ hg help revset.merge
1054 $ hg help revset.merge
1053 "merge()"
1055 "merge()"
1054 Changeset is a merge changeset.
1056 Changeset is a merge changeset.
1055
1057
1056 $ hg help glossary.dag
1058 $ hg help glossary.dag
1057 DAG
1059 DAG
1058 The repository of changesets of a distributed version control system
1060 The repository of changesets of a distributed version control system
1059 (DVCS) can be described as a directed acyclic graph (DAG), consisting
1061 (DVCS) can be described as a directed acyclic graph (DAG), consisting
1060 of nodes and edges, where nodes correspond to changesets and edges
1062 of nodes and edges, where nodes correspond to changesets and edges
1061 imply a parent -> child relation. This graph can be visualized by
1063 imply a parent -> child relation. This graph can be visualized by
1062 graphical tools such as "hg log --graph". In Mercurial, the DAG is
1064 graphical tools such as "hg log --graph". In Mercurial, the DAG is
1063 limited by the requirement for children to have at most two parents.
1065 limited by the requirement for children to have at most two parents.
1064
1066
1065
1067
1066 $ hg help hgrc.paths
1068 $ hg help hgrc.paths
1067 "paths"
1069 "paths"
1068 -------
1070 -------
1069
1071
1070 Assigns symbolic names to repositories. The left side is the symbolic
1072 Assigns symbolic names to repositories. The left side is the symbolic
1071 name, and the right gives the directory or URL that is the location of the
1073 name, and the right gives the directory or URL that is the location of the
1072 repository. Default paths can be declared by setting the following
1074 repository. Default paths can be declared by setting the following
1073 entries.
1075 entries.
1074
1076
1075 "default"
1077 "default"
1076 Directory or URL to use when pulling if no source is specified.
1078 Directory or URL to use when pulling if no source is specified.
1077 Default is set to repository from which the current repository was
1079 Default is set to repository from which the current repository was
1078 cloned.
1080 cloned.
1079
1081
1080 "default-push"
1082 "default-push"
1081 Optional. Directory or URL to use when pushing if no destination is
1083 Optional. Directory or URL to use when pushing if no destination is
1082 specified.
1084 specified.
1083
1085
1084 Custom paths can be defined by assigning the path to a name that later can
1086 Custom paths can be defined by assigning the path to a name that later can
1085 be used from the command line. Example:
1087 be used from the command line. Example:
1086
1088
1087 [paths]
1089 [paths]
1088 my_path = http://example.com/path
1090 my_path = http://example.com/path
1089
1091
1090 To push to the path defined in "my_path" run the command:
1092 To push to the path defined in "my_path" run the command:
1091
1093
1092 hg push my_path
1094 hg push my_path
1093
1095
1094 $ hg help glossary.mcguffin
1096 $ hg help glossary.mcguffin
1095 abort: help section not found
1097 abort: help section not found
1096 [255]
1098 [255]
1097
1099
1098 $ hg help glossary.mc.guffin
1100 $ hg help glossary.mc.guffin
1099 abort: help section not found
1101 abort: help section not found
1100 [255]
1102 [255]
1101
1103
1102 Test usage of section marks in help documents
1104 Test usage of section marks in help documents
1103
1105
1104 $ cd "$TESTDIR"/../doc
1106 $ cd "$TESTDIR"/../doc
1105 $ python check-seclevel.py
1107 $ python check-seclevel.py
1106 $ cd $TESTTMP
1108 $ cd $TESTTMP
1107
1109
1108 #if serve
1110 #if serve
1109
1111
1110 Test the help pages in hgweb.
1112 Test the help pages in hgweb.
1111
1113
1112 Dish up an empty repo; serve it cold.
1114 Dish up an empty repo; serve it cold.
1113
1115
1114 $ hg init "$TESTTMP/test"
1116 $ hg init "$TESTTMP/test"
1115 $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid
1117 $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid
1116 $ cat hg.pid >> $DAEMON_PIDS
1118 $ cat hg.pid >> $DAEMON_PIDS
1117
1119
1118 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help"
1120 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help"
1119 200 Script output follows
1121 200 Script output follows
1120
1122
1121 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1123 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1122 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1124 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1123 <head>
1125 <head>
1124 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1126 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1125 <meta name="robots" content="index, nofollow" />
1127 <meta name="robots" content="index, nofollow" />
1126 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1128 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1127 <script type="text/javascript" src="/static/mercurial.js"></script>
1129 <script type="text/javascript" src="/static/mercurial.js"></script>
1128
1130
1129 <title>Help: Index</title>
1131 <title>Help: Index</title>
1130 </head>
1132 </head>
1131 <body>
1133 <body>
1132
1134
1133 <div class="container">
1135 <div class="container">
1134 <div class="menu">
1136 <div class="menu">
1135 <div class="logo">
1137 <div class="logo">
1136 <a href="http://mercurial.selenic.com/">
1138 <a href="http://mercurial.selenic.com/">
1137 <img src="/static/hglogo.png" alt="mercurial" /></a>
1139 <img src="/static/hglogo.png" alt="mercurial" /></a>
1138 </div>
1140 </div>
1139 <ul>
1141 <ul>
1140 <li><a href="/shortlog">log</a></li>
1142 <li><a href="/shortlog">log</a></li>
1141 <li><a href="/graph">graph</a></li>
1143 <li><a href="/graph">graph</a></li>
1142 <li><a href="/tags">tags</a></li>
1144 <li><a href="/tags">tags</a></li>
1143 <li><a href="/bookmarks">bookmarks</a></li>
1145 <li><a href="/bookmarks">bookmarks</a></li>
1144 <li><a href="/branches">branches</a></li>
1146 <li><a href="/branches">branches</a></li>
1145 </ul>
1147 </ul>
1146 <ul>
1148 <ul>
1147 <li class="active">help</li>
1149 <li class="active">help</li>
1148 </ul>
1150 </ul>
1149 </div>
1151 </div>
1150
1152
1151 <div class="main">
1153 <div class="main">
1152 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1154 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1153 <form class="search" action="/log">
1155 <form class="search" action="/log">
1154
1156
1155 <p><input name="rev" id="search1" type="text" size="30" /></p>
1157 <p><input name="rev" id="search1" type="text" size="30" /></p>
1156 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1158 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1157 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1159 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1158 </form>
1160 </form>
1159 <table class="bigtable">
1161 <table class="bigtable">
1160 <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
1162 <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
1161
1163
1162 <tr><td>
1164 <tr><td>
1163 <a href="/help/config">
1165 <a href="/help/config">
1164 config
1166 config
1165 </a>
1167 </a>
1166 </td><td>
1168 </td><td>
1167 Configuration Files
1169 Configuration Files
1168 </td></tr>
1170 </td></tr>
1169 <tr><td>
1171 <tr><td>
1170 <a href="/help/dates">
1172 <a href="/help/dates">
1171 dates
1173 dates
1172 </a>
1174 </a>
1173 </td><td>
1175 </td><td>
1174 Date Formats
1176 Date Formats
1175 </td></tr>
1177 </td></tr>
1176 <tr><td>
1178 <tr><td>
1177 <a href="/help/diffs">
1179 <a href="/help/diffs">
1178 diffs
1180 diffs
1179 </a>
1181 </a>
1180 </td><td>
1182 </td><td>
1181 Diff Formats
1183 Diff Formats
1182 </td></tr>
1184 </td></tr>
1183 <tr><td>
1185 <tr><td>
1184 <a href="/help/environment">
1186 <a href="/help/environment">
1185 environment
1187 environment
1186 </a>
1188 </a>
1187 </td><td>
1189 </td><td>
1188 Environment Variables
1190 Environment Variables
1189 </td></tr>
1191 </td></tr>
1190 <tr><td>
1192 <tr><td>
1191 <a href="/help/extensions">
1193 <a href="/help/extensions">
1192 extensions
1194 extensions
1193 </a>
1195 </a>
1194 </td><td>
1196 </td><td>
1195 Using Additional Features
1197 Using Additional Features
1196 </td></tr>
1198 </td></tr>
1197 <tr><td>
1199 <tr><td>
1198 <a href="/help/filesets">
1200 <a href="/help/filesets">
1199 filesets
1201 filesets
1200 </a>
1202 </a>
1201 </td><td>
1203 </td><td>
1202 Specifying File Sets
1204 Specifying File Sets
1203 </td></tr>
1205 </td></tr>
1204 <tr><td>
1206 <tr><td>
1205 <a href="/help/glossary">
1207 <a href="/help/glossary">
1206 glossary
1208 glossary
1207 </a>
1209 </a>
1208 </td><td>
1210 </td><td>
1209 Glossary
1211 Glossary
1210 </td></tr>
1212 </td></tr>
1211 <tr><td>
1213 <tr><td>
1212 <a href="/help/hgignore">
1214 <a href="/help/hgignore">
1213 hgignore
1215 hgignore
1214 </a>
1216 </a>
1215 </td><td>
1217 </td><td>
1216 Syntax for Mercurial Ignore Files
1218 Syntax for Mercurial Ignore Files
1217 </td></tr>
1219 </td></tr>
1218 <tr><td>
1220 <tr><td>
1219 <a href="/help/hgweb">
1221 <a href="/help/hgweb">
1220 hgweb
1222 hgweb
1221 </a>
1223 </a>
1222 </td><td>
1224 </td><td>
1223 Configuring hgweb
1225 Configuring hgweb
1224 </td></tr>
1226 </td></tr>
1225 <tr><td>
1227 <tr><td>
1226 <a href="/help/merge-tools">
1228 <a href="/help/merge-tools">
1227 merge-tools
1229 merge-tools
1228 </a>
1230 </a>
1229 </td><td>
1231 </td><td>
1230 Merge Tools
1232 Merge Tools
1231 </td></tr>
1233 </td></tr>
1232 <tr><td>
1234 <tr><td>
1233 <a href="/help/multirevs">
1235 <a href="/help/multirevs">
1234 multirevs
1236 multirevs
1235 </a>
1237 </a>
1236 </td><td>
1238 </td><td>
1237 Specifying Multiple Revisions
1239 Specifying Multiple Revisions
1238 </td></tr>
1240 </td></tr>
1239 <tr><td>
1241 <tr><td>
1240 <a href="/help/patterns">
1242 <a href="/help/patterns">
1241 patterns
1243 patterns
1242 </a>
1244 </a>
1243 </td><td>
1245 </td><td>
1244 File Name Patterns
1246 File Name Patterns
1245 </td></tr>
1247 </td></tr>
1246 <tr><td>
1248 <tr><td>
1247 <a href="/help/phases">
1249 <a href="/help/phases">
1248 phases
1250 phases
1249 </a>
1251 </a>
1250 </td><td>
1252 </td><td>
1251 Working with Phases
1253 Working with Phases
1252 </td></tr>
1254 </td></tr>
1253 <tr><td>
1255 <tr><td>
1254 <a href="/help/revisions">
1256 <a href="/help/revisions">
1255 revisions
1257 revisions
1256 </a>
1258 </a>
1257 </td><td>
1259 </td><td>
1258 Specifying Single Revisions
1260 Specifying Single Revisions
1259 </td></tr>
1261 </td></tr>
1260 <tr><td>
1262 <tr><td>
1261 <a href="/help/revsets">
1263 <a href="/help/revsets">
1262 revsets
1264 revsets
1263 </a>
1265 </a>
1264 </td><td>
1266 </td><td>
1265 Specifying Revision Sets
1267 Specifying Revision Sets
1266 </td></tr>
1268 </td></tr>
1267 <tr><td>
1269 <tr><td>
1268 <a href="/help/subrepos">
1270 <a href="/help/subrepos">
1269 subrepos
1271 subrepos
1270 </a>
1272 </a>
1271 </td><td>
1273 </td><td>
1272 Subrepositories
1274 Subrepositories
1273 </td></tr>
1275 </td></tr>
1274 <tr><td>
1276 <tr><td>
1275 <a href="/help/templating">
1277 <a href="/help/templating">
1276 templating
1278 templating
1277 </a>
1279 </a>
1278 </td><td>
1280 </td><td>
1279 Template Usage
1281 Template Usage
1280 </td></tr>
1282 </td></tr>
1281 <tr><td>
1283 <tr><td>
1282 <a href="/help/urls">
1284 <a href="/help/urls">
1283 urls
1285 urls
1284 </a>
1286 </a>
1285 </td><td>
1287 </td><td>
1286 URL Paths
1288 URL Paths
1287 </td></tr>
1289 </td></tr>
1288 <tr><td>
1290 <tr><td>
1289 <a href="/help/topic-containing-verbose">
1291 <a href="/help/topic-containing-verbose">
1290 topic-containing-verbose
1292 topic-containing-verbose
1291 </a>
1293 </a>
1292 </td><td>
1294 </td><td>
1293 This is the topic to test omit indicating.
1295 This is the topic to test omit indicating.
1294 </td></tr>
1296 </td></tr>
1295
1297
1296 <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr>
1298 <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr>
1297
1299
1298 <tr><td>
1300 <tr><td>
1299 <a href="/help/add">
1301 <a href="/help/add">
1300 add
1302 add
1301 </a>
1303 </a>
1302 </td><td>
1304 </td><td>
1303 add the specified files on the next commit
1305 add the specified files on the next commit
1304 </td></tr>
1306 </td></tr>
1305 <tr><td>
1307 <tr><td>
1306 <a href="/help/annotate">
1308 <a href="/help/annotate">
1307 annotate
1309 annotate
1308 </a>
1310 </a>
1309 </td><td>
1311 </td><td>
1310 show changeset information by line for each file
1312 show changeset information by line for each file
1311 </td></tr>
1313 </td></tr>
1312 <tr><td>
1314 <tr><td>
1313 <a href="/help/clone">
1315 <a href="/help/clone">
1314 clone
1316 clone
1315 </a>
1317 </a>
1316 </td><td>
1318 </td><td>
1317 make a copy of an existing repository
1319 make a copy of an existing repository
1318 </td></tr>
1320 </td></tr>
1319 <tr><td>
1321 <tr><td>
1320 <a href="/help/commit">
1322 <a href="/help/commit">
1321 commit
1323 commit
1322 </a>
1324 </a>
1323 </td><td>
1325 </td><td>
1324 commit the specified files or all outstanding changes
1326 commit the specified files or all outstanding changes
1325 </td></tr>
1327 </td></tr>
1326 <tr><td>
1328 <tr><td>
1327 <a href="/help/diff">
1329 <a href="/help/diff">
1328 diff
1330 diff
1329 </a>
1331 </a>
1330 </td><td>
1332 </td><td>
1331 diff repository (or selected files)
1333 diff repository (or selected files)
1332 </td></tr>
1334 </td></tr>
1333 <tr><td>
1335 <tr><td>
1334 <a href="/help/export">
1336 <a href="/help/export">
1335 export
1337 export
1336 </a>
1338 </a>
1337 </td><td>
1339 </td><td>
1338 dump the header and diffs for one or more changesets
1340 dump the header and diffs for one or more changesets
1339 </td></tr>
1341 </td></tr>
1340 <tr><td>
1342 <tr><td>
1341 <a href="/help/forget">
1343 <a href="/help/forget">
1342 forget
1344 forget
1343 </a>
1345 </a>
1344 </td><td>
1346 </td><td>
1345 forget the specified files on the next commit
1347 forget the specified files on the next commit
1346 </td></tr>
1348 </td></tr>
1347 <tr><td>
1349 <tr><td>
1348 <a href="/help/init">
1350 <a href="/help/init">
1349 init
1351 init
1350 </a>
1352 </a>
1351 </td><td>
1353 </td><td>
1352 create a new repository in the given directory
1354 create a new repository in the given directory
1353 </td></tr>
1355 </td></tr>
1354 <tr><td>
1356 <tr><td>
1355 <a href="/help/log">
1357 <a href="/help/log">
1356 log
1358 log
1357 </a>
1359 </a>
1358 </td><td>
1360 </td><td>
1359 show revision history of entire repository or files
1361 show revision history of entire repository or files
1360 </td></tr>
1362 </td></tr>
1361 <tr><td>
1363 <tr><td>
1362 <a href="/help/merge">
1364 <a href="/help/merge">
1363 merge
1365 merge
1364 </a>
1366 </a>
1365 </td><td>
1367 </td><td>
1366 merge another revision into working directory
1368 merge another revision into working directory
1367 </td></tr>
1369 </td></tr>
1368 <tr><td>
1370 <tr><td>
1369 <a href="/help/pull">
1371 <a href="/help/pull">
1370 pull
1372 pull
1371 </a>
1373 </a>
1372 </td><td>
1374 </td><td>
1373 pull changes from the specified source
1375 pull changes from the specified source
1374 </td></tr>
1376 </td></tr>
1375 <tr><td>
1377 <tr><td>
1376 <a href="/help/push">
1378 <a href="/help/push">
1377 push
1379 push
1378 </a>
1380 </a>
1379 </td><td>
1381 </td><td>
1380 push changes to the specified destination
1382 push changes to the specified destination
1381 </td></tr>
1383 </td></tr>
1382 <tr><td>
1384 <tr><td>
1383 <a href="/help/remove">
1385 <a href="/help/remove">
1384 remove
1386 remove
1385 </a>
1387 </a>
1386 </td><td>
1388 </td><td>
1387 remove the specified files on the next commit
1389 remove the specified files on the next commit
1388 </td></tr>
1390 </td></tr>
1389 <tr><td>
1391 <tr><td>
1390 <a href="/help/serve">
1392 <a href="/help/serve">
1391 serve
1393 serve
1392 </a>
1394 </a>
1393 </td><td>
1395 </td><td>
1394 start stand-alone webserver
1396 start stand-alone webserver
1395 </td></tr>
1397 </td></tr>
1396 <tr><td>
1398 <tr><td>
1397 <a href="/help/status">
1399 <a href="/help/status">
1398 status
1400 status
1399 </a>
1401 </a>
1400 </td><td>
1402 </td><td>
1401 show changed files in the working directory
1403 show changed files in the working directory
1402 </td></tr>
1404 </td></tr>
1403 <tr><td>
1405 <tr><td>
1404 <a href="/help/summary">
1406 <a href="/help/summary">
1405 summary
1407 summary
1406 </a>
1408 </a>
1407 </td><td>
1409 </td><td>
1408 summarize working directory state
1410 summarize working directory state
1409 </td></tr>
1411 </td></tr>
1410 <tr><td>
1412 <tr><td>
1411 <a href="/help/update">
1413 <a href="/help/update">
1412 update
1414 update
1413 </a>
1415 </a>
1414 </td><td>
1416 </td><td>
1415 update working directory (or switch revisions)
1417 update working directory (or switch revisions)
1416 </td></tr>
1418 </td></tr>
1417
1419
1418 <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr>
1420 <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr>
1419
1421
1420 <tr><td>
1422 <tr><td>
1421 <a href="/help/addremove">
1423 <a href="/help/addremove">
1422 addremove
1424 addremove
1423 </a>
1425 </a>
1424 </td><td>
1426 </td><td>
1425 add all new files, delete all missing files
1427 add all new files, delete all missing files
1426 </td></tr>
1428 </td></tr>
1427 <tr><td>
1429 <tr><td>
1428 <a href="/help/archive">
1430 <a href="/help/archive">
1429 archive
1431 archive
1430 </a>
1432 </a>
1431 </td><td>
1433 </td><td>
1432 create an unversioned archive of a repository revision
1434 create an unversioned archive of a repository revision
1433 </td></tr>
1435 </td></tr>
1434 <tr><td>
1436 <tr><td>
1435 <a href="/help/backout">
1437 <a href="/help/backout">
1436 backout
1438 backout
1437 </a>
1439 </a>
1438 </td><td>
1440 </td><td>
1439 reverse effect of earlier changeset
1441 reverse effect of earlier changeset
1440 </td></tr>
1442 </td></tr>
1441 <tr><td>
1443 <tr><td>
1442 <a href="/help/bisect">
1444 <a href="/help/bisect">
1443 bisect
1445 bisect
1444 </a>
1446 </a>
1445 </td><td>
1447 </td><td>
1446 subdivision search of changesets
1448 subdivision search of changesets
1447 </td></tr>
1449 </td></tr>
1448 <tr><td>
1450 <tr><td>
1449 <a href="/help/bookmarks">
1451 <a href="/help/bookmarks">
1450 bookmarks
1452 bookmarks
1451 </a>
1453 </a>
1452 </td><td>
1454 </td><td>
1453 create a new bookmark or list existing bookmarks
1455 create a new bookmark or list existing bookmarks
1454 </td></tr>
1456 </td></tr>
1455 <tr><td>
1457 <tr><td>
1456 <a href="/help/branch">
1458 <a href="/help/branch">
1457 branch
1459 branch
1458 </a>
1460 </a>
1459 </td><td>
1461 </td><td>
1460 set or show the current branch name
1462 set or show the current branch name
1461 </td></tr>
1463 </td></tr>
1462 <tr><td>
1464 <tr><td>
1463 <a href="/help/branches">
1465 <a href="/help/branches">
1464 branches
1466 branches
1465 </a>
1467 </a>
1466 </td><td>
1468 </td><td>
1467 list repository named branches
1469 list repository named branches
1468 </td></tr>
1470 </td></tr>
1469 <tr><td>
1471 <tr><td>
1470 <a href="/help/bundle">
1472 <a href="/help/bundle">
1471 bundle
1473 bundle
1472 </a>
1474 </a>
1473 </td><td>
1475 </td><td>
1474 create a changegroup file
1476 create a changegroup file
1475 </td></tr>
1477 </td></tr>
1476 <tr><td>
1478 <tr><td>
1477 <a href="/help/cat">
1479 <a href="/help/cat">
1478 cat
1480 cat
1479 </a>
1481 </a>
1480 </td><td>
1482 </td><td>
1481 output the current or given revision of files
1483 output the current or given revision of files
1482 </td></tr>
1484 </td></tr>
1483 <tr><td>
1485 <tr><td>
1484 <a href="/help/config">
1486 <a href="/help/config">
1485 config
1487 config
1486 </a>
1488 </a>
1487 </td><td>
1489 </td><td>
1488 show combined config settings from all hgrc files
1490 show combined config settings from all hgrc files
1489 </td></tr>
1491 </td></tr>
1490 <tr><td>
1492 <tr><td>
1491 <a href="/help/copy">
1493 <a href="/help/copy">
1492 copy
1494 copy
1493 </a>
1495 </a>
1494 </td><td>
1496 </td><td>
1495 mark files as copied for the next commit
1497 mark files as copied for the next commit
1496 </td></tr>
1498 </td></tr>
1497 <tr><td>
1499 <tr><td>
1498 <a href="/help/files">
1500 <a href="/help/files">
1499 files
1501 files
1500 </a>
1502 </a>
1501 </td><td>
1503 </td><td>
1502 list tracked files
1504 list tracked files
1503 </td></tr>
1505 </td></tr>
1504 <tr><td>
1506 <tr><td>
1505 <a href="/help/graft">
1507 <a href="/help/graft">
1506 graft
1508 graft
1507 </a>
1509 </a>
1508 </td><td>
1510 </td><td>
1509 copy changes from other branches onto the current branch
1511 copy changes from other branches onto the current branch
1510 </td></tr>
1512 </td></tr>
1511 <tr><td>
1513 <tr><td>
1512 <a href="/help/grep">
1514 <a href="/help/grep">
1513 grep
1515 grep
1514 </a>
1516 </a>
1515 </td><td>
1517 </td><td>
1516 search for a pattern in specified files and revisions
1518 search for a pattern in specified files and revisions
1517 </td></tr>
1519 </td></tr>
1518 <tr><td>
1520 <tr><td>
1519 <a href="/help/heads">
1521 <a href="/help/heads">
1520 heads
1522 heads
1521 </a>
1523 </a>
1522 </td><td>
1524 </td><td>
1523 show branch heads
1525 show branch heads
1524 </td></tr>
1526 </td></tr>
1525 <tr><td>
1527 <tr><td>
1526 <a href="/help/help">
1528 <a href="/help/help">
1527 help
1529 help
1528 </a>
1530 </a>
1529 </td><td>
1531 </td><td>
1530 show help for a given topic or a help overview
1532 show help for a given topic or a help overview
1531 </td></tr>
1533 </td></tr>
1532 <tr><td>
1534 <tr><td>
1533 <a href="/help/identify">
1535 <a href="/help/identify">
1534 identify
1536 identify
1535 </a>
1537 </a>
1536 </td><td>
1538 </td><td>
1537 identify the working copy or specified revision
1539 identify the working copy or specified revision
1538 </td></tr>
1540 </td></tr>
1539 <tr><td>
1541 <tr><td>
1540 <a href="/help/import">
1542 <a href="/help/import">
1541 import
1543 import
1542 </a>
1544 </a>
1543 </td><td>
1545 </td><td>
1544 import an ordered set of patches
1546 import an ordered set of patches
1545 </td></tr>
1547 </td></tr>
1546 <tr><td>
1548 <tr><td>
1547 <a href="/help/incoming">
1549 <a href="/help/incoming">
1548 incoming
1550 incoming
1549 </a>
1551 </a>
1550 </td><td>
1552 </td><td>
1551 show new changesets found in source
1553 show new changesets found in source
1552 </td></tr>
1554 </td></tr>
1553 <tr><td>
1555 <tr><td>
1554 <a href="/help/manifest">
1556 <a href="/help/manifest">
1555 manifest
1557 manifest
1556 </a>
1558 </a>
1557 </td><td>
1559 </td><td>
1558 output the current or given revision of the project manifest
1560 output the current or given revision of the project manifest
1559 </td></tr>
1561 </td></tr>
1560 <tr><td>
1562 <tr><td>
1561 <a href="/help/nohelp">
1563 <a href="/help/nohelp">
1562 nohelp
1564 nohelp
1563 </a>
1565 </a>
1564 </td><td>
1566 </td><td>
1565 (no help text available)
1567 (no help text available)
1566 </td></tr>
1568 </td></tr>
1567 <tr><td>
1569 <tr><td>
1568 <a href="/help/outgoing">
1570 <a href="/help/outgoing">
1569 outgoing
1571 outgoing
1570 </a>
1572 </a>
1571 </td><td>
1573 </td><td>
1572 show changesets not found in the destination
1574 show changesets not found in the destination
1573 </td></tr>
1575 </td></tr>
1574 <tr><td>
1576 <tr><td>
1575 <a href="/help/paths">
1577 <a href="/help/paths">
1576 paths
1578 paths
1577 </a>
1579 </a>
1578 </td><td>
1580 </td><td>
1579 show aliases for remote repositories
1581 show aliases for remote repositories
1580 </td></tr>
1582 </td></tr>
1581 <tr><td>
1583 <tr><td>
1582 <a href="/help/phase">
1584 <a href="/help/phase">
1583 phase
1585 phase
1584 </a>
1586 </a>
1585 </td><td>
1587 </td><td>
1586 set or show the current phase name
1588 set or show the current phase name
1587 </td></tr>
1589 </td></tr>
1588 <tr><td>
1590 <tr><td>
1589 <a href="/help/recover">
1591 <a href="/help/recover">
1590 recover
1592 recover
1591 </a>
1593 </a>
1592 </td><td>
1594 </td><td>
1593 roll back an interrupted transaction
1595 roll back an interrupted transaction
1594 </td></tr>
1596 </td></tr>
1595 <tr><td>
1597 <tr><td>
1596 <a href="/help/rename">
1598 <a href="/help/rename">
1597 rename
1599 rename
1598 </a>
1600 </a>
1599 </td><td>
1601 </td><td>
1600 rename files; equivalent of copy + remove
1602 rename files; equivalent of copy + remove
1601 </td></tr>
1603 </td></tr>
1602 <tr><td>
1604 <tr><td>
1603 <a href="/help/resolve">
1605 <a href="/help/resolve">
1604 resolve
1606 resolve
1605 </a>
1607 </a>
1606 </td><td>
1608 </td><td>
1607 redo merges or set/view the merge status of files
1609 redo merges or set/view the merge status of files
1608 </td></tr>
1610 </td></tr>
1609 <tr><td>
1611 <tr><td>
1610 <a href="/help/revert">
1612 <a href="/help/revert">
1611 revert
1613 revert
1612 </a>
1614 </a>
1613 </td><td>
1615 </td><td>
1614 restore files to their checkout state
1616 restore files to their checkout state
1615 </td></tr>
1617 </td></tr>
1616 <tr><td>
1618 <tr><td>
1617 <a href="/help/root">
1619 <a href="/help/root">
1618 root
1620 root
1619 </a>
1621 </a>
1620 </td><td>
1622 </td><td>
1621 print the root (top) of the current working directory
1623 print the root (top) of the current working directory
1622 </td></tr>
1624 </td></tr>
1623 <tr><td>
1625 <tr><td>
1624 <a href="/help/tag">
1626 <a href="/help/tag">
1625 tag
1627 tag
1626 </a>
1628 </a>
1627 </td><td>
1629 </td><td>
1628 add one or more tags for the current or given revision
1630 add one or more tags for the current or given revision
1629 </td></tr>
1631 </td></tr>
1630 <tr><td>
1632 <tr><td>
1631 <a href="/help/tags">
1633 <a href="/help/tags">
1632 tags
1634 tags
1633 </a>
1635 </a>
1634 </td><td>
1636 </td><td>
1635 list repository tags
1637 list repository tags
1636 </td></tr>
1638 </td></tr>
1637 <tr><td>
1639 <tr><td>
1638 <a href="/help/unbundle">
1640 <a href="/help/unbundle">
1639 unbundle
1641 unbundle
1640 </a>
1642 </a>
1641 </td><td>
1643 </td><td>
1642 apply one or more changegroup files
1644 apply one or more changegroup files
1643 </td></tr>
1645 </td></tr>
1644 <tr><td>
1646 <tr><td>
1645 <a href="/help/verify">
1647 <a href="/help/verify">
1646 verify
1648 verify
1647 </a>
1649 </a>
1648 </td><td>
1650 </td><td>
1649 verify the integrity of the repository
1651 verify the integrity of the repository
1650 </td></tr>
1652 </td></tr>
1651 <tr><td>
1653 <tr><td>
1652 <a href="/help/version">
1654 <a href="/help/version">
1653 version
1655 version
1654 </a>
1656 </a>
1655 </td><td>
1657 </td><td>
1656 output version and copyright information
1658 output version and copyright information
1657 </td></tr>
1659 </td></tr>
1658 </table>
1660 </table>
1659 </div>
1661 </div>
1660 </div>
1662 </div>
1661
1663
1662 <script type="text/javascript">process_dates()</script>
1664 <script type="text/javascript">process_dates()</script>
1663
1665
1664
1666
1665 </body>
1667 </body>
1666 </html>
1668 </html>
1667
1669
1668
1670
1669 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/add"
1671 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/add"
1670 200 Script output follows
1672 200 Script output follows
1671
1673
1672 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1674 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1673 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1675 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1674 <head>
1676 <head>
1675 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1677 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1676 <meta name="robots" content="index, nofollow" />
1678 <meta name="robots" content="index, nofollow" />
1677 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1679 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1678 <script type="text/javascript" src="/static/mercurial.js"></script>
1680 <script type="text/javascript" src="/static/mercurial.js"></script>
1679
1681
1680 <title>Help: add</title>
1682 <title>Help: add</title>
1681 </head>
1683 </head>
1682 <body>
1684 <body>
1683
1685
1684 <div class="container">
1686 <div class="container">
1685 <div class="menu">
1687 <div class="menu">
1686 <div class="logo">
1688 <div class="logo">
1687 <a href="http://mercurial.selenic.com/">
1689 <a href="http://mercurial.selenic.com/">
1688 <img src="/static/hglogo.png" alt="mercurial" /></a>
1690 <img src="/static/hglogo.png" alt="mercurial" /></a>
1689 </div>
1691 </div>
1690 <ul>
1692 <ul>
1691 <li><a href="/shortlog">log</a></li>
1693 <li><a href="/shortlog">log</a></li>
1692 <li><a href="/graph">graph</a></li>
1694 <li><a href="/graph">graph</a></li>
1693 <li><a href="/tags">tags</a></li>
1695 <li><a href="/tags">tags</a></li>
1694 <li><a href="/bookmarks">bookmarks</a></li>
1696 <li><a href="/bookmarks">bookmarks</a></li>
1695 <li><a href="/branches">branches</a></li>
1697 <li><a href="/branches">branches</a></li>
1696 </ul>
1698 </ul>
1697 <ul>
1699 <ul>
1698 <li class="active"><a href="/help">help</a></li>
1700 <li class="active"><a href="/help">help</a></li>
1699 </ul>
1701 </ul>
1700 </div>
1702 </div>
1701
1703
1702 <div class="main">
1704 <div class="main">
1703 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1705 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1704 <h3>Help: add</h3>
1706 <h3>Help: add</h3>
1705
1707
1706 <form class="search" action="/log">
1708 <form class="search" action="/log">
1707
1709
1708 <p><input name="rev" id="search1" type="text" size="30" /></p>
1710 <p><input name="rev" id="search1" type="text" size="30" /></p>
1709 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1711 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1710 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1712 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1711 </form>
1713 </form>
1712 <div id="doc">
1714 <div id="doc">
1713 <p>
1715 <p>
1714 hg add [OPTION]... [FILE]...
1716 hg add [OPTION]... [FILE]...
1715 </p>
1717 </p>
1716 <p>
1718 <p>
1717 add the specified files on the next commit
1719 add the specified files on the next commit
1718 </p>
1720 </p>
1719 <p>
1721 <p>
1720 Schedule files to be version controlled and added to the
1722 Schedule files to be version controlled and added to the
1721 repository.
1723 repository.
1722 </p>
1724 </p>
1723 <p>
1725 <p>
1724 The files will be added to the repository at the next commit. To
1726 The files will be added to the repository at the next commit. To
1725 undo an add before that, see &quot;hg forget&quot;.
1727 undo an add before that, see &quot;hg forget&quot;.
1726 </p>
1728 </p>
1727 <p>
1729 <p>
1728 If no names are given, add all files to the repository.
1730 If no names are given, add all files to the repository.
1729 </p>
1731 </p>
1730 <p>
1732 <p>
1731 An example showing how new (unknown) files are added
1733 An example showing how new (unknown) files are added
1732 automatically by &quot;hg add&quot;:
1734 automatically by &quot;hg add&quot;:
1733 </p>
1735 </p>
1734 <pre>
1736 <pre>
1735 \$ ls (re)
1737 \$ ls (re)
1736 foo.c
1738 foo.c
1737 \$ hg status (re)
1739 \$ hg status (re)
1738 ? foo.c
1740 ? foo.c
1739 \$ hg add (re)
1741 \$ hg add (re)
1740 adding foo.c
1742 adding foo.c
1741 \$ hg status (re)
1743 \$ hg status (re)
1742 A foo.c
1744 A foo.c
1743 </pre>
1745 </pre>
1744 <p>
1746 <p>
1745 Returns 0 if all files are successfully added.
1747 Returns 0 if all files are successfully added.
1746 </p>
1748 </p>
1747 <p>
1749 <p>
1748 options ([+] can be repeated):
1750 options ([+] can be repeated):
1749 </p>
1751 </p>
1750 <table>
1752 <table>
1751 <tr><td>-I</td>
1753 <tr><td>-I</td>
1752 <td>--include PATTERN [+]</td>
1754 <td>--include PATTERN [+]</td>
1753 <td>include names matching the given patterns</td></tr>
1755 <td>include names matching the given patterns</td></tr>
1754 <tr><td>-X</td>
1756 <tr><td>-X</td>
1755 <td>--exclude PATTERN [+]</td>
1757 <td>--exclude PATTERN [+]</td>
1756 <td>exclude names matching the given patterns</td></tr>
1758 <td>exclude names matching the given patterns</td></tr>
1757 <tr><td>-S</td>
1759 <tr><td>-S</td>
1758 <td>--subrepos</td>
1760 <td>--subrepos</td>
1759 <td>recurse into subrepositories</td></tr>
1761 <td>recurse into subrepositories</td></tr>
1760 <tr><td>-n</td>
1762 <tr><td>-n</td>
1761 <td>--dry-run</td>
1763 <td>--dry-run</td>
1762 <td>do not perform actions, just print output</td></tr>
1764 <td>do not perform actions, just print output</td></tr>
1763 </table>
1765 </table>
1764 <p>
1766 <p>
1765 global options ([+] can be repeated):
1767 global options ([+] can be repeated):
1766 </p>
1768 </p>
1767 <table>
1769 <table>
1768 <tr><td>-R</td>
1770 <tr><td>-R</td>
1769 <td>--repository REPO</td>
1771 <td>--repository REPO</td>
1770 <td>repository root directory or name of overlay bundle file</td></tr>
1772 <td>repository root directory or name of overlay bundle file</td></tr>
1771 <tr><td></td>
1773 <tr><td></td>
1772 <td>--cwd DIR</td>
1774 <td>--cwd DIR</td>
1773 <td>change working directory</td></tr>
1775 <td>change working directory</td></tr>
1774 <tr><td>-y</td>
1776 <tr><td>-y</td>
1775 <td>--noninteractive</td>
1777 <td>--noninteractive</td>
1776 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1778 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1777 <tr><td>-q</td>
1779 <tr><td>-q</td>
1778 <td>--quiet</td>
1780 <td>--quiet</td>
1779 <td>suppress output</td></tr>
1781 <td>suppress output</td></tr>
1780 <tr><td>-v</td>
1782 <tr><td>-v</td>
1781 <td>--verbose</td>
1783 <td>--verbose</td>
1782 <td>enable additional output</td></tr>
1784 <td>enable additional output</td></tr>
1783 <tr><td></td>
1785 <tr><td></td>
1784 <td>--config CONFIG [+]</td>
1786 <td>--config CONFIG [+]</td>
1785 <td>set/override config option (use 'section.name=value')</td></tr>
1787 <td>set/override config option (use 'section.name=value')</td></tr>
1786 <tr><td></td>
1788 <tr><td></td>
1787 <td>--debug</td>
1789 <td>--debug</td>
1788 <td>enable debugging output</td></tr>
1790 <td>enable debugging output</td></tr>
1789 <tr><td></td>
1791 <tr><td></td>
1790 <td>--debugger</td>
1792 <td>--debugger</td>
1791 <td>start debugger</td></tr>
1793 <td>start debugger</td></tr>
1792 <tr><td></td>
1794 <tr><td></td>
1793 <td>--encoding ENCODE</td>
1795 <td>--encoding ENCODE</td>
1794 <td>set the charset encoding (default: ascii)</td></tr>
1796 <td>set the charset encoding (default: ascii)</td></tr>
1795 <tr><td></td>
1797 <tr><td></td>
1796 <td>--encodingmode MODE</td>
1798 <td>--encodingmode MODE</td>
1797 <td>set the charset encoding mode (default: strict)</td></tr>
1799 <td>set the charset encoding mode (default: strict)</td></tr>
1798 <tr><td></td>
1800 <tr><td></td>
1799 <td>--traceback</td>
1801 <td>--traceback</td>
1800 <td>always print a traceback on exception</td></tr>
1802 <td>always print a traceback on exception</td></tr>
1801 <tr><td></td>
1803 <tr><td></td>
1802 <td>--time</td>
1804 <td>--time</td>
1803 <td>time how long the command takes</td></tr>
1805 <td>time how long the command takes</td></tr>
1804 <tr><td></td>
1806 <tr><td></td>
1805 <td>--profile</td>
1807 <td>--profile</td>
1806 <td>print command execution profile</td></tr>
1808 <td>print command execution profile</td></tr>
1807 <tr><td></td>
1809 <tr><td></td>
1808 <td>--version</td>
1810 <td>--version</td>
1809 <td>output version information and exit</td></tr>
1811 <td>output version information and exit</td></tr>
1810 <tr><td>-h</td>
1812 <tr><td>-h</td>
1811 <td>--help</td>
1813 <td>--help</td>
1812 <td>display help and exit</td></tr>
1814 <td>display help and exit</td></tr>
1813 <tr><td></td>
1815 <tr><td></td>
1814 <td>--hidden</td>
1816 <td>--hidden</td>
1815 <td>consider hidden changesets</td></tr>
1817 <td>consider hidden changesets</td></tr>
1816 </table>
1818 </table>
1817
1819
1818 </div>
1820 </div>
1819 </div>
1821 </div>
1820 </div>
1822 </div>
1821
1823
1822 <script type="text/javascript">process_dates()</script>
1824 <script type="text/javascript">process_dates()</script>
1823
1825
1824
1826
1825 </body>
1827 </body>
1826 </html>
1828 </html>
1827
1829
1828
1830
1829 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/remove"
1831 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/remove"
1830 200 Script output follows
1832 200 Script output follows
1831
1833
1832 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1834 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1833 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1835 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1834 <head>
1836 <head>
1835 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1837 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1836 <meta name="robots" content="index, nofollow" />
1838 <meta name="robots" content="index, nofollow" />
1837 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1839 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1838 <script type="text/javascript" src="/static/mercurial.js"></script>
1840 <script type="text/javascript" src="/static/mercurial.js"></script>
1839
1841
1840 <title>Help: remove</title>
1842 <title>Help: remove</title>
1841 </head>
1843 </head>
1842 <body>
1844 <body>
1843
1845
1844 <div class="container">
1846 <div class="container">
1845 <div class="menu">
1847 <div class="menu">
1846 <div class="logo">
1848 <div class="logo">
1847 <a href="http://mercurial.selenic.com/">
1849 <a href="http://mercurial.selenic.com/">
1848 <img src="/static/hglogo.png" alt="mercurial" /></a>
1850 <img src="/static/hglogo.png" alt="mercurial" /></a>
1849 </div>
1851 </div>
1850 <ul>
1852 <ul>
1851 <li><a href="/shortlog">log</a></li>
1853 <li><a href="/shortlog">log</a></li>
1852 <li><a href="/graph">graph</a></li>
1854 <li><a href="/graph">graph</a></li>
1853 <li><a href="/tags">tags</a></li>
1855 <li><a href="/tags">tags</a></li>
1854 <li><a href="/bookmarks">bookmarks</a></li>
1856 <li><a href="/bookmarks">bookmarks</a></li>
1855 <li><a href="/branches">branches</a></li>
1857 <li><a href="/branches">branches</a></li>
1856 </ul>
1858 </ul>
1857 <ul>
1859 <ul>
1858 <li class="active"><a href="/help">help</a></li>
1860 <li class="active"><a href="/help">help</a></li>
1859 </ul>
1861 </ul>
1860 </div>
1862 </div>
1861
1863
1862 <div class="main">
1864 <div class="main">
1863 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1865 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1864 <h3>Help: remove</h3>
1866 <h3>Help: remove</h3>
1865
1867
1866 <form class="search" action="/log">
1868 <form class="search" action="/log">
1867
1869
1868 <p><input name="rev" id="search1" type="text" size="30" /></p>
1870 <p><input name="rev" id="search1" type="text" size="30" /></p>
1869 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1871 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1870 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1872 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1871 </form>
1873 </form>
1872 <div id="doc">
1874 <div id="doc">
1873 <p>
1875 <p>
1874 hg remove [OPTION]... FILE...
1876 hg remove [OPTION]... FILE...
1875 </p>
1877 </p>
1876 <p>
1878 <p>
1877 aliases: rm
1879 aliases: rm
1878 </p>
1880 </p>
1879 <p>
1881 <p>
1880 remove the specified files on the next commit
1882 remove the specified files on the next commit
1881 </p>
1883 </p>
1882 <p>
1884 <p>
1883 Schedule the indicated files for removal from the current branch.
1885 Schedule the indicated files for removal from the current branch.
1884 </p>
1886 </p>
1885 <p>
1887 <p>
1886 This command schedules the files to be removed at the next commit.
1888 This command schedules the files to be removed at the next commit.
1887 To undo a remove before that, see &quot;hg revert&quot;. To undo added
1889 To undo a remove before that, see &quot;hg revert&quot;. To undo added
1888 files, see &quot;hg forget&quot;.
1890 files, see &quot;hg forget&quot;.
1889 </p>
1891 </p>
1890 <p>
1892 <p>
1891 -A/--after can be used to remove only files that have already
1893 -A/--after can be used to remove only files that have already
1892 been deleted, -f/--force can be used to force deletion, and -Af
1894 been deleted, -f/--force can be used to force deletion, and -Af
1893 can be used to remove files from the next revision without
1895 can be used to remove files from the next revision without
1894 deleting them from the working directory.
1896 deleting them from the working directory.
1895 </p>
1897 </p>
1896 <p>
1898 <p>
1897 The following table details the behavior of remove for different
1899 The following table details the behavior of remove for different
1898 file states (columns) and option combinations (rows). The file
1900 file states (columns) and option combinations (rows). The file
1899 states are Added [A], Clean [C], Modified [M] and Missing [!]
1901 states are Added [A], Clean [C], Modified [M] and Missing [!]
1900 (as reported by &quot;hg status&quot;). The actions are Warn, Remove
1902 (as reported by &quot;hg status&quot;). The actions are Warn, Remove
1901 (from branch) and Delete (from disk):
1903 (from branch) and Delete (from disk):
1902 </p>
1904 </p>
1903 <table>
1905 <table>
1904 <tr><td>opt/state</td>
1906 <tr><td>opt/state</td>
1905 <td>A</td>
1907 <td>A</td>
1906 <td>C</td>
1908 <td>C</td>
1907 <td>M</td>
1909 <td>M</td>
1908 <td>!</td></tr>
1910 <td>!</td></tr>
1909 <tr><td>none</td>
1911 <tr><td>none</td>
1910 <td>W</td>
1912 <td>W</td>
1911 <td>RD</td>
1913 <td>RD</td>
1912 <td>W</td>
1914 <td>W</td>
1913 <td>R</td></tr>
1915 <td>R</td></tr>
1914 <tr><td>-f</td>
1916 <tr><td>-f</td>
1915 <td>R</td>
1917 <td>R</td>
1916 <td>RD</td>
1918 <td>RD</td>
1917 <td>RD</td>
1919 <td>RD</td>
1918 <td>R</td></tr>
1920 <td>R</td></tr>
1919 <tr><td>-A</td>
1921 <tr><td>-A</td>
1920 <td>W</td>
1922 <td>W</td>
1921 <td>W</td>
1923 <td>W</td>
1922 <td>W</td>
1924 <td>W</td>
1923 <td>R</td></tr>
1925 <td>R</td></tr>
1924 <tr><td>-Af</td>
1926 <tr><td>-Af</td>
1925 <td>R</td>
1927 <td>R</td>
1926 <td>R</td>
1928 <td>R</td>
1927 <td>R</td>
1929 <td>R</td>
1928 <td>R</td></tr>
1930 <td>R</td></tr>
1929 </table>
1931 </table>
1930 <p>
1932 <p>
1931 Note that remove never deletes files in Added [A] state from the
1933 Note that remove never deletes files in Added [A] state from the
1932 working directory, not even if option --force is specified.
1934 working directory, not even if option --force is specified.
1933 </p>
1935 </p>
1934 <p>
1936 <p>
1935 Returns 0 on success, 1 if any warnings encountered.
1937 Returns 0 on success, 1 if any warnings encountered.
1936 </p>
1938 </p>
1937 <p>
1939 <p>
1938 options ([+] can be repeated):
1940 options ([+] can be repeated):
1939 </p>
1941 </p>
1940 <table>
1942 <table>
1941 <tr><td>-A</td>
1943 <tr><td>-A</td>
1942 <td>--after</td>
1944 <td>--after</td>
1943 <td>record delete for missing files</td></tr>
1945 <td>record delete for missing files</td></tr>
1944 <tr><td>-f</td>
1946 <tr><td>-f</td>
1945 <td>--force</td>
1947 <td>--force</td>
1946 <td>remove (and delete) file even if added or modified</td></tr>
1948 <td>remove (and delete) file even if added or modified</td></tr>
1947 <tr><td>-S</td>
1949 <tr><td>-S</td>
1948 <td>--subrepos</td>
1950 <td>--subrepos</td>
1949 <td>recurse into subrepositories</td></tr>
1951 <td>recurse into subrepositories</td></tr>
1950 <tr><td>-I</td>
1952 <tr><td>-I</td>
1951 <td>--include PATTERN [+]</td>
1953 <td>--include PATTERN [+]</td>
1952 <td>include names matching the given patterns</td></tr>
1954 <td>include names matching the given patterns</td></tr>
1953 <tr><td>-X</td>
1955 <tr><td>-X</td>
1954 <td>--exclude PATTERN [+]</td>
1956 <td>--exclude PATTERN [+]</td>
1955 <td>exclude names matching the given patterns</td></tr>
1957 <td>exclude names matching the given patterns</td></tr>
1956 </table>
1958 </table>
1957 <p>
1959 <p>
1958 global options ([+] can be repeated):
1960 global options ([+] can be repeated):
1959 </p>
1961 </p>
1960 <table>
1962 <table>
1961 <tr><td>-R</td>
1963 <tr><td>-R</td>
1962 <td>--repository REPO</td>
1964 <td>--repository REPO</td>
1963 <td>repository root directory or name of overlay bundle file</td></tr>
1965 <td>repository root directory or name of overlay bundle file</td></tr>
1964 <tr><td></td>
1966 <tr><td></td>
1965 <td>--cwd DIR</td>
1967 <td>--cwd DIR</td>
1966 <td>change working directory</td></tr>
1968 <td>change working directory</td></tr>
1967 <tr><td>-y</td>
1969 <tr><td>-y</td>
1968 <td>--noninteractive</td>
1970 <td>--noninteractive</td>
1969 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1971 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1970 <tr><td>-q</td>
1972 <tr><td>-q</td>
1971 <td>--quiet</td>
1973 <td>--quiet</td>
1972 <td>suppress output</td></tr>
1974 <td>suppress output</td></tr>
1973 <tr><td>-v</td>
1975 <tr><td>-v</td>
1974 <td>--verbose</td>
1976 <td>--verbose</td>
1975 <td>enable additional output</td></tr>
1977 <td>enable additional output</td></tr>
1976 <tr><td></td>
1978 <tr><td></td>
1977 <td>--config CONFIG [+]</td>
1979 <td>--config CONFIG [+]</td>
1978 <td>set/override config option (use 'section.name=value')</td></tr>
1980 <td>set/override config option (use 'section.name=value')</td></tr>
1979 <tr><td></td>
1981 <tr><td></td>
1980 <td>--debug</td>
1982 <td>--debug</td>
1981 <td>enable debugging output</td></tr>
1983 <td>enable debugging output</td></tr>
1982 <tr><td></td>
1984 <tr><td></td>
1983 <td>--debugger</td>
1985 <td>--debugger</td>
1984 <td>start debugger</td></tr>
1986 <td>start debugger</td></tr>
1985 <tr><td></td>
1987 <tr><td></td>
1986 <td>--encoding ENCODE</td>
1988 <td>--encoding ENCODE</td>
1987 <td>set the charset encoding (default: ascii)</td></tr>
1989 <td>set the charset encoding (default: ascii)</td></tr>
1988 <tr><td></td>
1990 <tr><td></td>
1989 <td>--encodingmode MODE</td>
1991 <td>--encodingmode MODE</td>
1990 <td>set the charset encoding mode (default: strict)</td></tr>
1992 <td>set the charset encoding mode (default: strict)</td></tr>
1991 <tr><td></td>
1993 <tr><td></td>
1992 <td>--traceback</td>
1994 <td>--traceback</td>
1993 <td>always print a traceback on exception</td></tr>
1995 <td>always print a traceback on exception</td></tr>
1994 <tr><td></td>
1996 <tr><td></td>
1995 <td>--time</td>
1997 <td>--time</td>
1996 <td>time how long the command takes</td></tr>
1998 <td>time how long the command takes</td></tr>
1997 <tr><td></td>
1999 <tr><td></td>
1998 <td>--profile</td>
2000 <td>--profile</td>
1999 <td>print command execution profile</td></tr>
2001 <td>print command execution profile</td></tr>
2000 <tr><td></td>
2002 <tr><td></td>
2001 <td>--version</td>
2003 <td>--version</td>
2002 <td>output version information and exit</td></tr>
2004 <td>output version information and exit</td></tr>
2003 <tr><td>-h</td>
2005 <tr><td>-h</td>
2004 <td>--help</td>
2006 <td>--help</td>
2005 <td>display help and exit</td></tr>
2007 <td>display help and exit</td></tr>
2006 <tr><td></td>
2008 <tr><td></td>
2007 <td>--hidden</td>
2009 <td>--hidden</td>
2008 <td>consider hidden changesets</td></tr>
2010 <td>consider hidden changesets</td></tr>
2009 </table>
2011 </table>
2010
2012
2011 </div>
2013 </div>
2012 </div>
2014 </div>
2013 </div>
2015 </div>
2014
2016
2015 <script type="text/javascript">process_dates()</script>
2017 <script type="text/javascript">process_dates()</script>
2016
2018
2017
2019
2018 </body>
2020 </body>
2019 </html>
2021 </html>
2020
2022
2021
2023
2022 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/revisions"
2024 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/revisions"
2023 200 Script output follows
2025 200 Script output follows
2024
2026
2025 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2027 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2026 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2028 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2027 <head>
2029 <head>
2028 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2030 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2029 <meta name="robots" content="index, nofollow" />
2031 <meta name="robots" content="index, nofollow" />
2030 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2032 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2031 <script type="text/javascript" src="/static/mercurial.js"></script>
2033 <script type="text/javascript" src="/static/mercurial.js"></script>
2032
2034
2033 <title>Help: revisions</title>
2035 <title>Help: revisions</title>
2034 </head>
2036 </head>
2035 <body>
2037 <body>
2036
2038
2037 <div class="container">
2039 <div class="container">
2038 <div class="menu">
2040 <div class="menu">
2039 <div class="logo">
2041 <div class="logo">
2040 <a href="http://mercurial.selenic.com/">
2042 <a href="http://mercurial.selenic.com/">
2041 <img src="/static/hglogo.png" alt="mercurial" /></a>
2043 <img src="/static/hglogo.png" alt="mercurial" /></a>
2042 </div>
2044 </div>
2043 <ul>
2045 <ul>
2044 <li><a href="/shortlog">log</a></li>
2046 <li><a href="/shortlog">log</a></li>
2045 <li><a href="/graph">graph</a></li>
2047 <li><a href="/graph">graph</a></li>
2046 <li><a href="/tags">tags</a></li>
2048 <li><a href="/tags">tags</a></li>
2047 <li><a href="/bookmarks">bookmarks</a></li>
2049 <li><a href="/bookmarks">bookmarks</a></li>
2048 <li><a href="/branches">branches</a></li>
2050 <li><a href="/branches">branches</a></li>
2049 </ul>
2051 </ul>
2050 <ul>
2052 <ul>
2051 <li class="active"><a href="/help">help</a></li>
2053 <li class="active"><a href="/help">help</a></li>
2052 </ul>
2054 </ul>
2053 </div>
2055 </div>
2054
2056
2055 <div class="main">
2057 <div class="main">
2056 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2058 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2057 <h3>Help: revisions</h3>
2059 <h3>Help: revisions</h3>
2058
2060
2059 <form class="search" action="/log">
2061 <form class="search" action="/log">
2060
2062
2061 <p><input name="rev" id="search1" type="text" size="30" /></p>
2063 <p><input name="rev" id="search1" type="text" size="30" /></p>
2062 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2064 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2063 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2065 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2064 </form>
2066 </form>
2065 <div id="doc">
2067 <div id="doc">
2066 <h1>Specifying Single Revisions</h1>
2068 <h1>Specifying Single Revisions</h1>
2067 <p>
2069 <p>
2068 Mercurial supports several ways to specify individual revisions.
2070 Mercurial supports several ways to specify individual revisions.
2069 </p>
2071 </p>
2070 <p>
2072 <p>
2071 A plain integer is treated as a revision number. Negative integers are
2073 A plain integer is treated as a revision number. Negative integers are
2072 treated as sequential offsets from the tip, with -1 denoting the tip,
2074 treated as sequential offsets from the tip, with -1 denoting the tip,
2073 -2 denoting the revision prior to the tip, and so forth.
2075 -2 denoting the revision prior to the tip, and so forth.
2074 </p>
2076 </p>
2075 <p>
2077 <p>
2076 A 40-digit hexadecimal string is treated as a unique revision
2078 A 40-digit hexadecimal string is treated as a unique revision
2077 identifier.
2079 identifier.
2078 </p>
2080 </p>
2079 <p>
2081 <p>
2080 A hexadecimal string less than 40 characters long is treated as a
2082 A hexadecimal string less than 40 characters long is treated as a
2081 unique revision identifier and is referred to as a short-form
2083 unique revision identifier and is referred to as a short-form
2082 identifier. A short-form identifier is only valid if it is the prefix
2084 identifier. A short-form identifier is only valid if it is the prefix
2083 of exactly one full-length identifier.
2085 of exactly one full-length identifier.
2084 </p>
2086 </p>
2085 <p>
2087 <p>
2086 Any other string is treated as a bookmark, tag, or branch name. A
2088 Any other string is treated as a bookmark, tag, or branch name. A
2087 bookmark is a movable pointer to a revision. A tag is a permanent name
2089 bookmark is a movable pointer to a revision. A tag is a permanent name
2088 associated with a revision. A branch name denotes the tipmost open branch head
2090 associated with a revision. A branch name denotes the tipmost open branch head
2089 of that branch - or if they are all closed, the tipmost closed head of the
2091 of that branch - or if they are all closed, the tipmost closed head of the
2090 branch. Bookmark, tag, and branch names must not contain the &quot;:&quot; character.
2092 branch. Bookmark, tag, and branch names must not contain the &quot;:&quot; character.
2091 </p>
2093 </p>
2092 <p>
2094 <p>
2093 The reserved name &quot;tip&quot; always identifies the most recent revision.
2095 The reserved name &quot;tip&quot; always identifies the most recent revision.
2094 </p>
2096 </p>
2095 <p>
2097 <p>
2096 The reserved name &quot;null&quot; indicates the null revision. This is the
2098 The reserved name &quot;null&quot; indicates the null revision. This is the
2097 revision of an empty repository, and the parent of revision 0.
2099 revision of an empty repository, and the parent of revision 0.
2098 </p>
2100 </p>
2099 <p>
2101 <p>
2100 The reserved name &quot;.&quot; indicates the working directory parent. If no
2102 The reserved name &quot;.&quot; indicates the working directory parent. If no
2101 working directory is checked out, it is equivalent to null. If an
2103 working directory is checked out, it is equivalent to null. If an
2102 uncommitted merge is in progress, &quot;.&quot; is the revision of the first
2104 uncommitted merge is in progress, &quot;.&quot; is the revision of the first
2103 parent.
2105 parent.
2104 </p>
2106 </p>
2105
2107
2106 </div>
2108 </div>
2107 </div>
2109 </div>
2108 </div>
2110 </div>
2109
2111
2110 <script type="text/javascript">process_dates()</script>
2112 <script type="text/javascript">process_dates()</script>
2111
2113
2112
2114
2113 </body>
2115 </body>
2114 </html>
2116 </html>
2115
2117
2116
2118
2117 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
2119 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
2118
2120
2119 #endif
2121 #endif
General Comments 0
You need to be logged in to leave comments. Login now