##// END OF EJS Templates
test-help: add test to demonstrate that 'hg help merge-tools' is sane
Augie Fackler -
r24100:7f23e67e default
parent child Browse files
Show More
@@ -1,2121 +1,2240 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 debuglocks show or modify state of locks
783 debuglocks show or modify state of locks
784 debugnamecomplete
784 debugnamecomplete
785 complete "names" - tags, open branch names, bookmark names
785 complete "names" - tags, open branch names, bookmark names
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 without \`\`-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 without \`\`-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 without "-v" (for
1026 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1027 extension)
1027 extension)
1028
1028
1029 This paragraph is never omitted, too (for extension)
1029 This paragraph is never omitted, too (for extension)
1030
1030
1031 no commands defined
1031 no commands defined
1032 $ hg help topic-containing-verbose
1032 $ hg help topic-containing-verbose
1033 This is the topic to test omit indicating.
1033 This is the topic to test omit indicating.
1034 """"""""""""""""""""""""""""""""""""""""""
1034 """"""""""""""""""""""""""""""""""""""""""
1035
1035
1036 This paragraph is never omitted (for topic).
1036 This paragraph is never omitted (for topic).
1037
1037
1038 This paragraph is never omitted, too (for topic)
1038 This paragraph is never omitted, too (for topic)
1039
1039
1040 (some details hidden, use --verbose to show complete help)
1040 (some details hidden, use --verbose to show complete help)
1041 $ hg help -v topic-containing-verbose
1041 $ hg help -v topic-containing-verbose
1042 This is the topic to test omit indicating.
1042 This is the topic to test omit indicating.
1043 """"""""""""""""""""""""""""""""""""""""""
1043 """"""""""""""""""""""""""""""""""""""""""
1044
1044
1045 This paragraph is never omitted (for topic).
1045 This paragraph is never omitted (for topic).
1046
1046
1047 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1047 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1048 topic)
1048 topic)
1049
1049
1050 This paragraph is never omitted, too (for topic)
1050 This paragraph is never omitted, too (for topic)
1051
1051
1052 Test section lookup
1052 Test section lookup
1053
1053
1054 $ hg help revset.merge
1054 $ hg help revset.merge
1055 "merge()"
1055 "merge()"
1056 Changeset is a merge changeset.
1056 Changeset is a merge changeset.
1057
1057
1058 $ hg help glossary.dag
1058 $ hg help glossary.dag
1059 DAG
1059 DAG
1060 The repository of changesets of a distributed version control system
1060 The repository of changesets of a distributed version control system
1061 (DVCS) can be described as a directed acyclic graph (DAG), consisting
1061 (DVCS) can be described as a directed acyclic graph (DAG), consisting
1062 of nodes and edges, where nodes correspond to changesets and edges
1062 of nodes and edges, where nodes correspond to changesets and edges
1063 imply a parent -> child relation. This graph can be visualized by
1063 imply a parent -> child relation. This graph can be visualized by
1064 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
1065 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.
1066
1066
1067
1067
1068 $ hg help hgrc.paths
1068 $ hg help hgrc.paths
1069 "paths"
1069 "paths"
1070 -------
1070 -------
1071
1071
1072 Assigns symbolic names to repositories. The left side is the symbolic
1072 Assigns symbolic names to repositories. The left side is the symbolic
1073 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
1074 repository. Default paths can be declared by setting the following
1074 repository. Default paths can be declared by setting the following
1075 entries.
1075 entries.
1076
1076
1077 "default"
1077 "default"
1078 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.
1079 Default is set to repository from which the current repository was
1079 Default is set to repository from which the current repository was
1080 cloned.
1080 cloned.
1081
1081
1082 "default-push"
1082 "default-push"
1083 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
1084 specified.
1084 specified.
1085
1085
1086 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
1087 be used from the command line. Example:
1087 be used from the command line. Example:
1088
1088
1089 [paths]
1089 [paths]
1090 my_path = http://example.com/path
1090 my_path = http://example.com/path
1091
1091
1092 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:
1093
1093
1094 hg push my_path
1094 hg push my_path
1095
1095
1096 $ hg help glossary.mcguffin
1096 $ hg help glossary.mcguffin
1097 abort: help section not found
1097 abort: help section not found
1098 [255]
1098 [255]
1099
1099
1100 $ hg help glossary.mc.guffin
1100 $ hg help glossary.mc.guffin
1101 abort: help section not found
1101 abort: help section not found
1102 [255]
1102 [255]
1103
1103
1104 Test dynamic list of merge tools only shows up once
1105 $ hg help merge-tools
1106 Merge Tools
1107 """""""""""
1108
1109 To merge files Mercurial uses merge tools.
1110
1111 A merge tool combines two different versions of a file into a merged file.
1112 Merge tools are given the two files and the greatest common ancestor of
1113 the two file versions, so they can determine the changes made on both
1114 branches.
1115
1116 Merge tools are used both for "hg resolve", "hg merge", "hg update", "hg
1117 backout" and in several extensions.
1118
1119 Usually, the merge tool tries to automatically reconcile the files by
1120 combining all non-overlapping changes that occurred separately in the two
1121 different evolutions of the same initial base file. Furthermore, some
1122 interactive merge programs make it easier to manually resolve conflicting
1123 merges, either in a graphical way, or by inserting some conflict markers.
1124 Mercurial does not include any interactive merge programs but relies on
1125 external tools for that.
1126
1127 Available merge tools
1128 =====================
1129
1130 External merge tools and their properties are configured in the merge-
1131 tools configuration section - see hgrc(5) - but they can often just be
1132 named by their executable.
1133
1134 A merge tool is generally usable if its executable can be found on the
1135 system and if it can handle the merge. The executable is found if it is an
1136 absolute or relative executable path or the name of an application in the
1137 executable search path. The tool is assumed to be able to handle the merge
1138 if it can handle symlinks if the file is a symlink, if it can handle
1139 binary files if the file is binary, and if a GUI is available if the tool
1140 requires a GUI.
1141
1142 There are some internal merge tools which can be used. The internal merge
1143 tools are:
1144
1145 ":dump"
1146 Creates three versions of the files to merge, containing the contents of
1147 local, other and base. These files can then be used to perform a merge
1148 manually. If the file to be merged is named "a.txt", these files will
1149 accordingly be named "a.txt.local", "a.txt.other" and "a.txt.base" and
1150 they will be placed in the same directory as "a.txt".
1151
1152 ":fail"
1153 Rather than attempting to merge files that were modified on both
1154 branches, it marks them as unresolved. The resolve command must be used
1155 to resolve these conflicts.
1156
1157 ":local"
1158 Uses the local version of files as the merged version.
1159
1160 ":merge"
1161 Uses the internal non-interactive simple merge algorithm for merging
1162 files. It will fail if there are any conflicts and leave markers in the
1163 partially merged file. Markers will have two sections, one for each side
1164 of merge.
1165
1166 ":merge3"
1167 Uses the internal non-interactive simple merge algorithm for merging
1168 files. It will fail if there are any conflicts and leave markers in the
1169 partially merged file. Marker will have three sections, one from each
1170 side of the merge and one for the base content.
1171
1172 ":other"
1173 Uses the other version of files as the merged version.
1174
1175 ":prompt"
1176 Asks the user which of the local or the other version to keep as the
1177 merged version.
1178
1179 ":tagmerge"
1180 Uses the internal tag merge algorithm (experimental).
1181
1182 Internal tools are always available and do not require a GUI but will by
1183 default not handle symlinks or binary files.
1184
1185 Choosing a merge tool
1186 =====================
1187
1188 Mercurial uses these rules when deciding which merge tool to use:
1189
1190 1. If a tool has been specified with the --tool option to merge or
1191 resolve, it is used. If it is the name of a tool in the merge-tools
1192 configuration, its configuration is used. Otherwise the specified tool
1193 must be executable by the shell.
1194 2. If the "HGMERGE" environment variable is present, its value is used and
1195 must be executable by the shell.
1196 3. If the filename of the file to be merged matches any of the patterns in
1197 the merge-patterns configuration section, the first usable merge tool
1198 corresponding to a matching pattern is used. Here, binary capabilities
1199 of the merge tool are not considered.
1200 4. If ui.merge is set it will be considered next. If the value is not the
1201 name of a configured tool, the specified value is used and must be
1202 executable by the shell. Otherwise the named tool is used if it is
1203 usable.
1204 5. If any usable merge tools are present in the merge-tools configuration
1205 section, the one with the highest priority is used.
1206 6. If a program named "hgmerge" can be found on the system, it is used -
1207 but it will by default not be used for symlinks and binary files.
1208 7. If the file to be merged is not binary and is not a symlink, then
1209 internal ":merge" is used.
1210 8. The merge of the file fails and must be resolved before commit.
1211
1212 Note:
1213 After selecting a merge program, Mercurial will by default attempt to
1214 merge the files using a simple merge algorithm first. Only if it
1215 doesn't succeed because of conflicting changes Mercurial will actually
1216 execute the merge program. Whether to use the simple merge algorithm
1217 first can be controlled by the premerge setting of the merge tool.
1218 Premerge is enabled by default unless the file is binary or a symlink.
1219
1220 See the merge-tools and ui sections of hgrc(5) for details on the
1221 configuration of merge tools.
1222
1104 Test usage of section marks in help documents
1223 Test usage of section marks in help documents
1105
1224
1106 $ cd "$TESTDIR"/../doc
1225 $ cd "$TESTDIR"/../doc
1107 $ python check-seclevel.py
1226 $ python check-seclevel.py
1108 $ cd $TESTTMP
1227 $ cd $TESTTMP
1109
1228
1110 #if serve
1229 #if serve
1111
1230
1112 Test the help pages in hgweb.
1231 Test the help pages in hgweb.
1113
1232
1114 Dish up an empty repo; serve it cold.
1233 Dish up an empty repo; serve it cold.
1115
1234
1116 $ hg init "$TESTTMP/test"
1235 $ hg init "$TESTTMP/test"
1117 $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid
1236 $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid
1118 $ cat hg.pid >> $DAEMON_PIDS
1237 $ cat hg.pid >> $DAEMON_PIDS
1119
1238
1120 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help"
1239 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help"
1121 200 Script output follows
1240 200 Script output follows
1122
1241
1123 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1242 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1124 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1243 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1125 <head>
1244 <head>
1126 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1245 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1127 <meta name="robots" content="index, nofollow" />
1246 <meta name="robots" content="index, nofollow" />
1128 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1247 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1129 <script type="text/javascript" src="/static/mercurial.js"></script>
1248 <script type="text/javascript" src="/static/mercurial.js"></script>
1130
1249
1131 <title>Help: Index</title>
1250 <title>Help: Index</title>
1132 </head>
1251 </head>
1133 <body>
1252 <body>
1134
1253
1135 <div class="container">
1254 <div class="container">
1136 <div class="menu">
1255 <div class="menu">
1137 <div class="logo">
1256 <div class="logo">
1138 <a href="http://mercurial.selenic.com/">
1257 <a href="http://mercurial.selenic.com/">
1139 <img src="/static/hglogo.png" alt="mercurial" /></a>
1258 <img src="/static/hglogo.png" alt="mercurial" /></a>
1140 </div>
1259 </div>
1141 <ul>
1260 <ul>
1142 <li><a href="/shortlog">log</a></li>
1261 <li><a href="/shortlog">log</a></li>
1143 <li><a href="/graph">graph</a></li>
1262 <li><a href="/graph">graph</a></li>
1144 <li><a href="/tags">tags</a></li>
1263 <li><a href="/tags">tags</a></li>
1145 <li><a href="/bookmarks">bookmarks</a></li>
1264 <li><a href="/bookmarks">bookmarks</a></li>
1146 <li><a href="/branches">branches</a></li>
1265 <li><a href="/branches">branches</a></li>
1147 </ul>
1266 </ul>
1148 <ul>
1267 <ul>
1149 <li class="active">help</li>
1268 <li class="active">help</li>
1150 </ul>
1269 </ul>
1151 </div>
1270 </div>
1152
1271
1153 <div class="main">
1272 <div class="main">
1154 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1273 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1155 <form class="search" action="/log">
1274 <form class="search" action="/log">
1156
1275
1157 <p><input name="rev" id="search1" type="text" size="30" /></p>
1276 <p><input name="rev" id="search1" type="text" size="30" /></p>
1158 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1277 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1159 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1278 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1160 </form>
1279 </form>
1161 <table class="bigtable">
1280 <table class="bigtable">
1162 <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
1281 <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
1163
1282
1164 <tr><td>
1283 <tr><td>
1165 <a href="/help/config">
1284 <a href="/help/config">
1166 config
1285 config
1167 </a>
1286 </a>
1168 </td><td>
1287 </td><td>
1169 Configuration Files
1288 Configuration Files
1170 </td></tr>
1289 </td></tr>
1171 <tr><td>
1290 <tr><td>
1172 <a href="/help/dates">
1291 <a href="/help/dates">
1173 dates
1292 dates
1174 </a>
1293 </a>
1175 </td><td>
1294 </td><td>
1176 Date Formats
1295 Date Formats
1177 </td></tr>
1296 </td></tr>
1178 <tr><td>
1297 <tr><td>
1179 <a href="/help/diffs">
1298 <a href="/help/diffs">
1180 diffs
1299 diffs
1181 </a>
1300 </a>
1182 </td><td>
1301 </td><td>
1183 Diff Formats
1302 Diff Formats
1184 </td></tr>
1303 </td></tr>
1185 <tr><td>
1304 <tr><td>
1186 <a href="/help/environment">
1305 <a href="/help/environment">
1187 environment
1306 environment
1188 </a>
1307 </a>
1189 </td><td>
1308 </td><td>
1190 Environment Variables
1309 Environment Variables
1191 </td></tr>
1310 </td></tr>
1192 <tr><td>
1311 <tr><td>
1193 <a href="/help/extensions">
1312 <a href="/help/extensions">
1194 extensions
1313 extensions
1195 </a>
1314 </a>
1196 </td><td>
1315 </td><td>
1197 Using Additional Features
1316 Using Additional Features
1198 </td></tr>
1317 </td></tr>
1199 <tr><td>
1318 <tr><td>
1200 <a href="/help/filesets">
1319 <a href="/help/filesets">
1201 filesets
1320 filesets
1202 </a>
1321 </a>
1203 </td><td>
1322 </td><td>
1204 Specifying File Sets
1323 Specifying File Sets
1205 </td></tr>
1324 </td></tr>
1206 <tr><td>
1325 <tr><td>
1207 <a href="/help/glossary">
1326 <a href="/help/glossary">
1208 glossary
1327 glossary
1209 </a>
1328 </a>
1210 </td><td>
1329 </td><td>
1211 Glossary
1330 Glossary
1212 </td></tr>
1331 </td></tr>
1213 <tr><td>
1332 <tr><td>
1214 <a href="/help/hgignore">
1333 <a href="/help/hgignore">
1215 hgignore
1334 hgignore
1216 </a>
1335 </a>
1217 </td><td>
1336 </td><td>
1218 Syntax for Mercurial Ignore Files
1337 Syntax for Mercurial Ignore Files
1219 </td></tr>
1338 </td></tr>
1220 <tr><td>
1339 <tr><td>
1221 <a href="/help/hgweb">
1340 <a href="/help/hgweb">
1222 hgweb
1341 hgweb
1223 </a>
1342 </a>
1224 </td><td>
1343 </td><td>
1225 Configuring hgweb
1344 Configuring hgweb
1226 </td></tr>
1345 </td></tr>
1227 <tr><td>
1346 <tr><td>
1228 <a href="/help/merge-tools">
1347 <a href="/help/merge-tools">
1229 merge-tools
1348 merge-tools
1230 </a>
1349 </a>
1231 </td><td>
1350 </td><td>
1232 Merge Tools
1351 Merge Tools
1233 </td></tr>
1352 </td></tr>
1234 <tr><td>
1353 <tr><td>
1235 <a href="/help/multirevs">
1354 <a href="/help/multirevs">
1236 multirevs
1355 multirevs
1237 </a>
1356 </a>
1238 </td><td>
1357 </td><td>
1239 Specifying Multiple Revisions
1358 Specifying Multiple Revisions
1240 </td></tr>
1359 </td></tr>
1241 <tr><td>
1360 <tr><td>
1242 <a href="/help/patterns">
1361 <a href="/help/patterns">
1243 patterns
1362 patterns
1244 </a>
1363 </a>
1245 </td><td>
1364 </td><td>
1246 File Name Patterns
1365 File Name Patterns
1247 </td></tr>
1366 </td></tr>
1248 <tr><td>
1367 <tr><td>
1249 <a href="/help/phases">
1368 <a href="/help/phases">
1250 phases
1369 phases
1251 </a>
1370 </a>
1252 </td><td>
1371 </td><td>
1253 Working with Phases
1372 Working with Phases
1254 </td></tr>
1373 </td></tr>
1255 <tr><td>
1374 <tr><td>
1256 <a href="/help/revisions">
1375 <a href="/help/revisions">
1257 revisions
1376 revisions
1258 </a>
1377 </a>
1259 </td><td>
1378 </td><td>
1260 Specifying Single Revisions
1379 Specifying Single Revisions
1261 </td></tr>
1380 </td></tr>
1262 <tr><td>
1381 <tr><td>
1263 <a href="/help/revsets">
1382 <a href="/help/revsets">
1264 revsets
1383 revsets
1265 </a>
1384 </a>
1266 </td><td>
1385 </td><td>
1267 Specifying Revision Sets
1386 Specifying Revision Sets
1268 </td></tr>
1387 </td></tr>
1269 <tr><td>
1388 <tr><td>
1270 <a href="/help/subrepos">
1389 <a href="/help/subrepos">
1271 subrepos
1390 subrepos
1272 </a>
1391 </a>
1273 </td><td>
1392 </td><td>
1274 Subrepositories
1393 Subrepositories
1275 </td></tr>
1394 </td></tr>
1276 <tr><td>
1395 <tr><td>
1277 <a href="/help/templating">
1396 <a href="/help/templating">
1278 templating
1397 templating
1279 </a>
1398 </a>
1280 </td><td>
1399 </td><td>
1281 Template Usage
1400 Template Usage
1282 </td></tr>
1401 </td></tr>
1283 <tr><td>
1402 <tr><td>
1284 <a href="/help/urls">
1403 <a href="/help/urls">
1285 urls
1404 urls
1286 </a>
1405 </a>
1287 </td><td>
1406 </td><td>
1288 URL Paths
1407 URL Paths
1289 </td></tr>
1408 </td></tr>
1290 <tr><td>
1409 <tr><td>
1291 <a href="/help/topic-containing-verbose">
1410 <a href="/help/topic-containing-verbose">
1292 topic-containing-verbose
1411 topic-containing-verbose
1293 </a>
1412 </a>
1294 </td><td>
1413 </td><td>
1295 This is the topic to test omit indicating.
1414 This is the topic to test omit indicating.
1296 </td></tr>
1415 </td></tr>
1297
1416
1298 <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr>
1417 <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr>
1299
1418
1300 <tr><td>
1419 <tr><td>
1301 <a href="/help/add">
1420 <a href="/help/add">
1302 add
1421 add
1303 </a>
1422 </a>
1304 </td><td>
1423 </td><td>
1305 add the specified files on the next commit
1424 add the specified files on the next commit
1306 </td></tr>
1425 </td></tr>
1307 <tr><td>
1426 <tr><td>
1308 <a href="/help/annotate">
1427 <a href="/help/annotate">
1309 annotate
1428 annotate
1310 </a>
1429 </a>
1311 </td><td>
1430 </td><td>
1312 show changeset information by line for each file
1431 show changeset information by line for each file
1313 </td></tr>
1432 </td></tr>
1314 <tr><td>
1433 <tr><td>
1315 <a href="/help/clone">
1434 <a href="/help/clone">
1316 clone
1435 clone
1317 </a>
1436 </a>
1318 </td><td>
1437 </td><td>
1319 make a copy of an existing repository
1438 make a copy of an existing repository
1320 </td></tr>
1439 </td></tr>
1321 <tr><td>
1440 <tr><td>
1322 <a href="/help/commit">
1441 <a href="/help/commit">
1323 commit
1442 commit
1324 </a>
1443 </a>
1325 </td><td>
1444 </td><td>
1326 commit the specified files or all outstanding changes
1445 commit the specified files or all outstanding changes
1327 </td></tr>
1446 </td></tr>
1328 <tr><td>
1447 <tr><td>
1329 <a href="/help/diff">
1448 <a href="/help/diff">
1330 diff
1449 diff
1331 </a>
1450 </a>
1332 </td><td>
1451 </td><td>
1333 diff repository (or selected files)
1452 diff repository (or selected files)
1334 </td></tr>
1453 </td></tr>
1335 <tr><td>
1454 <tr><td>
1336 <a href="/help/export">
1455 <a href="/help/export">
1337 export
1456 export
1338 </a>
1457 </a>
1339 </td><td>
1458 </td><td>
1340 dump the header and diffs for one or more changesets
1459 dump the header and diffs for one or more changesets
1341 </td></tr>
1460 </td></tr>
1342 <tr><td>
1461 <tr><td>
1343 <a href="/help/forget">
1462 <a href="/help/forget">
1344 forget
1463 forget
1345 </a>
1464 </a>
1346 </td><td>
1465 </td><td>
1347 forget the specified files on the next commit
1466 forget the specified files on the next commit
1348 </td></tr>
1467 </td></tr>
1349 <tr><td>
1468 <tr><td>
1350 <a href="/help/init">
1469 <a href="/help/init">
1351 init
1470 init
1352 </a>
1471 </a>
1353 </td><td>
1472 </td><td>
1354 create a new repository in the given directory
1473 create a new repository in the given directory
1355 </td></tr>
1474 </td></tr>
1356 <tr><td>
1475 <tr><td>
1357 <a href="/help/log">
1476 <a href="/help/log">
1358 log
1477 log
1359 </a>
1478 </a>
1360 </td><td>
1479 </td><td>
1361 show revision history of entire repository or files
1480 show revision history of entire repository or files
1362 </td></tr>
1481 </td></tr>
1363 <tr><td>
1482 <tr><td>
1364 <a href="/help/merge">
1483 <a href="/help/merge">
1365 merge
1484 merge
1366 </a>
1485 </a>
1367 </td><td>
1486 </td><td>
1368 merge another revision into working directory
1487 merge another revision into working directory
1369 </td></tr>
1488 </td></tr>
1370 <tr><td>
1489 <tr><td>
1371 <a href="/help/pull">
1490 <a href="/help/pull">
1372 pull
1491 pull
1373 </a>
1492 </a>
1374 </td><td>
1493 </td><td>
1375 pull changes from the specified source
1494 pull changes from the specified source
1376 </td></tr>
1495 </td></tr>
1377 <tr><td>
1496 <tr><td>
1378 <a href="/help/push">
1497 <a href="/help/push">
1379 push
1498 push
1380 </a>
1499 </a>
1381 </td><td>
1500 </td><td>
1382 push changes to the specified destination
1501 push changes to the specified destination
1383 </td></tr>
1502 </td></tr>
1384 <tr><td>
1503 <tr><td>
1385 <a href="/help/remove">
1504 <a href="/help/remove">
1386 remove
1505 remove
1387 </a>
1506 </a>
1388 </td><td>
1507 </td><td>
1389 remove the specified files on the next commit
1508 remove the specified files on the next commit
1390 </td></tr>
1509 </td></tr>
1391 <tr><td>
1510 <tr><td>
1392 <a href="/help/serve">
1511 <a href="/help/serve">
1393 serve
1512 serve
1394 </a>
1513 </a>
1395 </td><td>
1514 </td><td>
1396 start stand-alone webserver
1515 start stand-alone webserver
1397 </td></tr>
1516 </td></tr>
1398 <tr><td>
1517 <tr><td>
1399 <a href="/help/status">
1518 <a href="/help/status">
1400 status
1519 status
1401 </a>
1520 </a>
1402 </td><td>
1521 </td><td>
1403 show changed files in the working directory
1522 show changed files in the working directory
1404 </td></tr>
1523 </td></tr>
1405 <tr><td>
1524 <tr><td>
1406 <a href="/help/summary">
1525 <a href="/help/summary">
1407 summary
1526 summary
1408 </a>
1527 </a>
1409 </td><td>
1528 </td><td>
1410 summarize working directory state
1529 summarize working directory state
1411 </td></tr>
1530 </td></tr>
1412 <tr><td>
1531 <tr><td>
1413 <a href="/help/update">
1532 <a href="/help/update">
1414 update
1533 update
1415 </a>
1534 </a>
1416 </td><td>
1535 </td><td>
1417 update working directory (or switch revisions)
1536 update working directory (or switch revisions)
1418 </td></tr>
1537 </td></tr>
1419
1538
1420 <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr>
1539 <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr>
1421
1540
1422 <tr><td>
1541 <tr><td>
1423 <a href="/help/addremove">
1542 <a href="/help/addremove">
1424 addremove
1543 addremove
1425 </a>
1544 </a>
1426 </td><td>
1545 </td><td>
1427 add all new files, delete all missing files
1546 add all new files, delete all missing files
1428 </td></tr>
1547 </td></tr>
1429 <tr><td>
1548 <tr><td>
1430 <a href="/help/archive">
1549 <a href="/help/archive">
1431 archive
1550 archive
1432 </a>
1551 </a>
1433 </td><td>
1552 </td><td>
1434 create an unversioned archive of a repository revision
1553 create an unversioned archive of a repository revision
1435 </td></tr>
1554 </td></tr>
1436 <tr><td>
1555 <tr><td>
1437 <a href="/help/backout">
1556 <a href="/help/backout">
1438 backout
1557 backout
1439 </a>
1558 </a>
1440 </td><td>
1559 </td><td>
1441 reverse effect of earlier changeset
1560 reverse effect of earlier changeset
1442 </td></tr>
1561 </td></tr>
1443 <tr><td>
1562 <tr><td>
1444 <a href="/help/bisect">
1563 <a href="/help/bisect">
1445 bisect
1564 bisect
1446 </a>
1565 </a>
1447 </td><td>
1566 </td><td>
1448 subdivision search of changesets
1567 subdivision search of changesets
1449 </td></tr>
1568 </td></tr>
1450 <tr><td>
1569 <tr><td>
1451 <a href="/help/bookmarks">
1570 <a href="/help/bookmarks">
1452 bookmarks
1571 bookmarks
1453 </a>
1572 </a>
1454 </td><td>
1573 </td><td>
1455 create a new bookmark or list existing bookmarks
1574 create a new bookmark or list existing bookmarks
1456 </td></tr>
1575 </td></tr>
1457 <tr><td>
1576 <tr><td>
1458 <a href="/help/branch">
1577 <a href="/help/branch">
1459 branch
1578 branch
1460 </a>
1579 </a>
1461 </td><td>
1580 </td><td>
1462 set or show the current branch name
1581 set or show the current branch name
1463 </td></tr>
1582 </td></tr>
1464 <tr><td>
1583 <tr><td>
1465 <a href="/help/branches">
1584 <a href="/help/branches">
1466 branches
1585 branches
1467 </a>
1586 </a>
1468 </td><td>
1587 </td><td>
1469 list repository named branches
1588 list repository named branches
1470 </td></tr>
1589 </td></tr>
1471 <tr><td>
1590 <tr><td>
1472 <a href="/help/bundle">
1591 <a href="/help/bundle">
1473 bundle
1592 bundle
1474 </a>
1593 </a>
1475 </td><td>
1594 </td><td>
1476 create a changegroup file
1595 create a changegroup file
1477 </td></tr>
1596 </td></tr>
1478 <tr><td>
1597 <tr><td>
1479 <a href="/help/cat">
1598 <a href="/help/cat">
1480 cat
1599 cat
1481 </a>
1600 </a>
1482 </td><td>
1601 </td><td>
1483 output the current or given revision of files
1602 output the current or given revision of files
1484 </td></tr>
1603 </td></tr>
1485 <tr><td>
1604 <tr><td>
1486 <a href="/help/config">
1605 <a href="/help/config">
1487 config
1606 config
1488 </a>
1607 </a>
1489 </td><td>
1608 </td><td>
1490 show combined config settings from all hgrc files
1609 show combined config settings from all hgrc files
1491 </td></tr>
1610 </td></tr>
1492 <tr><td>
1611 <tr><td>
1493 <a href="/help/copy">
1612 <a href="/help/copy">
1494 copy
1613 copy
1495 </a>
1614 </a>
1496 </td><td>
1615 </td><td>
1497 mark files as copied for the next commit
1616 mark files as copied for the next commit
1498 </td></tr>
1617 </td></tr>
1499 <tr><td>
1618 <tr><td>
1500 <a href="/help/files">
1619 <a href="/help/files">
1501 files
1620 files
1502 </a>
1621 </a>
1503 </td><td>
1622 </td><td>
1504 list tracked files
1623 list tracked files
1505 </td></tr>
1624 </td></tr>
1506 <tr><td>
1625 <tr><td>
1507 <a href="/help/graft">
1626 <a href="/help/graft">
1508 graft
1627 graft
1509 </a>
1628 </a>
1510 </td><td>
1629 </td><td>
1511 copy changes from other branches onto the current branch
1630 copy changes from other branches onto the current branch
1512 </td></tr>
1631 </td></tr>
1513 <tr><td>
1632 <tr><td>
1514 <a href="/help/grep">
1633 <a href="/help/grep">
1515 grep
1634 grep
1516 </a>
1635 </a>
1517 </td><td>
1636 </td><td>
1518 search for a pattern in specified files and revisions
1637 search for a pattern in specified files and revisions
1519 </td></tr>
1638 </td></tr>
1520 <tr><td>
1639 <tr><td>
1521 <a href="/help/heads">
1640 <a href="/help/heads">
1522 heads
1641 heads
1523 </a>
1642 </a>
1524 </td><td>
1643 </td><td>
1525 show branch heads
1644 show branch heads
1526 </td></tr>
1645 </td></tr>
1527 <tr><td>
1646 <tr><td>
1528 <a href="/help/help">
1647 <a href="/help/help">
1529 help
1648 help
1530 </a>
1649 </a>
1531 </td><td>
1650 </td><td>
1532 show help for a given topic or a help overview
1651 show help for a given topic or a help overview
1533 </td></tr>
1652 </td></tr>
1534 <tr><td>
1653 <tr><td>
1535 <a href="/help/identify">
1654 <a href="/help/identify">
1536 identify
1655 identify
1537 </a>
1656 </a>
1538 </td><td>
1657 </td><td>
1539 identify the working copy or specified revision
1658 identify the working copy or specified revision
1540 </td></tr>
1659 </td></tr>
1541 <tr><td>
1660 <tr><td>
1542 <a href="/help/import">
1661 <a href="/help/import">
1543 import
1662 import
1544 </a>
1663 </a>
1545 </td><td>
1664 </td><td>
1546 import an ordered set of patches
1665 import an ordered set of patches
1547 </td></tr>
1666 </td></tr>
1548 <tr><td>
1667 <tr><td>
1549 <a href="/help/incoming">
1668 <a href="/help/incoming">
1550 incoming
1669 incoming
1551 </a>
1670 </a>
1552 </td><td>
1671 </td><td>
1553 show new changesets found in source
1672 show new changesets found in source
1554 </td></tr>
1673 </td></tr>
1555 <tr><td>
1674 <tr><td>
1556 <a href="/help/manifest">
1675 <a href="/help/manifest">
1557 manifest
1676 manifest
1558 </a>
1677 </a>
1559 </td><td>
1678 </td><td>
1560 output the current or given revision of the project manifest
1679 output the current or given revision of the project manifest
1561 </td></tr>
1680 </td></tr>
1562 <tr><td>
1681 <tr><td>
1563 <a href="/help/nohelp">
1682 <a href="/help/nohelp">
1564 nohelp
1683 nohelp
1565 </a>
1684 </a>
1566 </td><td>
1685 </td><td>
1567 (no help text available)
1686 (no help text available)
1568 </td></tr>
1687 </td></tr>
1569 <tr><td>
1688 <tr><td>
1570 <a href="/help/outgoing">
1689 <a href="/help/outgoing">
1571 outgoing
1690 outgoing
1572 </a>
1691 </a>
1573 </td><td>
1692 </td><td>
1574 show changesets not found in the destination
1693 show changesets not found in the destination
1575 </td></tr>
1694 </td></tr>
1576 <tr><td>
1695 <tr><td>
1577 <a href="/help/paths">
1696 <a href="/help/paths">
1578 paths
1697 paths
1579 </a>
1698 </a>
1580 </td><td>
1699 </td><td>
1581 show aliases for remote repositories
1700 show aliases for remote repositories
1582 </td></tr>
1701 </td></tr>
1583 <tr><td>
1702 <tr><td>
1584 <a href="/help/phase">
1703 <a href="/help/phase">
1585 phase
1704 phase
1586 </a>
1705 </a>
1587 </td><td>
1706 </td><td>
1588 set or show the current phase name
1707 set or show the current phase name
1589 </td></tr>
1708 </td></tr>
1590 <tr><td>
1709 <tr><td>
1591 <a href="/help/recover">
1710 <a href="/help/recover">
1592 recover
1711 recover
1593 </a>
1712 </a>
1594 </td><td>
1713 </td><td>
1595 roll back an interrupted transaction
1714 roll back an interrupted transaction
1596 </td></tr>
1715 </td></tr>
1597 <tr><td>
1716 <tr><td>
1598 <a href="/help/rename">
1717 <a href="/help/rename">
1599 rename
1718 rename
1600 </a>
1719 </a>
1601 </td><td>
1720 </td><td>
1602 rename files; equivalent of copy + remove
1721 rename files; equivalent of copy + remove
1603 </td></tr>
1722 </td></tr>
1604 <tr><td>
1723 <tr><td>
1605 <a href="/help/resolve">
1724 <a href="/help/resolve">
1606 resolve
1725 resolve
1607 </a>
1726 </a>
1608 </td><td>
1727 </td><td>
1609 redo merges or set/view the merge status of files
1728 redo merges or set/view the merge status of files
1610 </td></tr>
1729 </td></tr>
1611 <tr><td>
1730 <tr><td>
1612 <a href="/help/revert">
1731 <a href="/help/revert">
1613 revert
1732 revert
1614 </a>
1733 </a>
1615 </td><td>
1734 </td><td>
1616 restore files to their checkout state
1735 restore files to their checkout state
1617 </td></tr>
1736 </td></tr>
1618 <tr><td>
1737 <tr><td>
1619 <a href="/help/root">
1738 <a href="/help/root">
1620 root
1739 root
1621 </a>
1740 </a>
1622 </td><td>
1741 </td><td>
1623 print the root (top) of the current working directory
1742 print the root (top) of the current working directory
1624 </td></tr>
1743 </td></tr>
1625 <tr><td>
1744 <tr><td>
1626 <a href="/help/tag">
1745 <a href="/help/tag">
1627 tag
1746 tag
1628 </a>
1747 </a>
1629 </td><td>
1748 </td><td>
1630 add one or more tags for the current or given revision
1749 add one or more tags for the current or given revision
1631 </td></tr>
1750 </td></tr>
1632 <tr><td>
1751 <tr><td>
1633 <a href="/help/tags">
1752 <a href="/help/tags">
1634 tags
1753 tags
1635 </a>
1754 </a>
1636 </td><td>
1755 </td><td>
1637 list repository tags
1756 list repository tags
1638 </td></tr>
1757 </td></tr>
1639 <tr><td>
1758 <tr><td>
1640 <a href="/help/unbundle">
1759 <a href="/help/unbundle">
1641 unbundle
1760 unbundle
1642 </a>
1761 </a>
1643 </td><td>
1762 </td><td>
1644 apply one or more changegroup files
1763 apply one or more changegroup files
1645 </td></tr>
1764 </td></tr>
1646 <tr><td>
1765 <tr><td>
1647 <a href="/help/verify">
1766 <a href="/help/verify">
1648 verify
1767 verify
1649 </a>
1768 </a>
1650 </td><td>
1769 </td><td>
1651 verify the integrity of the repository
1770 verify the integrity of the repository
1652 </td></tr>
1771 </td></tr>
1653 <tr><td>
1772 <tr><td>
1654 <a href="/help/version">
1773 <a href="/help/version">
1655 version
1774 version
1656 </a>
1775 </a>
1657 </td><td>
1776 </td><td>
1658 output version and copyright information
1777 output version and copyright information
1659 </td></tr>
1778 </td></tr>
1660 </table>
1779 </table>
1661 </div>
1780 </div>
1662 </div>
1781 </div>
1663
1782
1664 <script type="text/javascript">process_dates()</script>
1783 <script type="text/javascript">process_dates()</script>
1665
1784
1666
1785
1667 </body>
1786 </body>
1668 </html>
1787 </html>
1669
1788
1670
1789
1671 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/add"
1790 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/add"
1672 200 Script output follows
1791 200 Script output follows
1673
1792
1674 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1793 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1675 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1794 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1676 <head>
1795 <head>
1677 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1796 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1678 <meta name="robots" content="index, nofollow" />
1797 <meta name="robots" content="index, nofollow" />
1679 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1798 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1680 <script type="text/javascript" src="/static/mercurial.js"></script>
1799 <script type="text/javascript" src="/static/mercurial.js"></script>
1681
1800
1682 <title>Help: add</title>
1801 <title>Help: add</title>
1683 </head>
1802 </head>
1684 <body>
1803 <body>
1685
1804
1686 <div class="container">
1805 <div class="container">
1687 <div class="menu">
1806 <div class="menu">
1688 <div class="logo">
1807 <div class="logo">
1689 <a href="http://mercurial.selenic.com/">
1808 <a href="http://mercurial.selenic.com/">
1690 <img src="/static/hglogo.png" alt="mercurial" /></a>
1809 <img src="/static/hglogo.png" alt="mercurial" /></a>
1691 </div>
1810 </div>
1692 <ul>
1811 <ul>
1693 <li><a href="/shortlog">log</a></li>
1812 <li><a href="/shortlog">log</a></li>
1694 <li><a href="/graph">graph</a></li>
1813 <li><a href="/graph">graph</a></li>
1695 <li><a href="/tags">tags</a></li>
1814 <li><a href="/tags">tags</a></li>
1696 <li><a href="/bookmarks">bookmarks</a></li>
1815 <li><a href="/bookmarks">bookmarks</a></li>
1697 <li><a href="/branches">branches</a></li>
1816 <li><a href="/branches">branches</a></li>
1698 </ul>
1817 </ul>
1699 <ul>
1818 <ul>
1700 <li class="active"><a href="/help">help</a></li>
1819 <li class="active"><a href="/help">help</a></li>
1701 </ul>
1820 </ul>
1702 </div>
1821 </div>
1703
1822
1704 <div class="main">
1823 <div class="main">
1705 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1824 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1706 <h3>Help: add</h3>
1825 <h3>Help: add</h3>
1707
1826
1708 <form class="search" action="/log">
1827 <form class="search" action="/log">
1709
1828
1710 <p><input name="rev" id="search1" type="text" size="30" /></p>
1829 <p><input name="rev" id="search1" type="text" size="30" /></p>
1711 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1830 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1712 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1831 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1713 </form>
1832 </form>
1714 <div id="doc">
1833 <div id="doc">
1715 <p>
1834 <p>
1716 hg add [OPTION]... [FILE]...
1835 hg add [OPTION]... [FILE]...
1717 </p>
1836 </p>
1718 <p>
1837 <p>
1719 add the specified files on the next commit
1838 add the specified files on the next commit
1720 </p>
1839 </p>
1721 <p>
1840 <p>
1722 Schedule files to be version controlled and added to the
1841 Schedule files to be version controlled and added to the
1723 repository.
1842 repository.
1724 </p>
1843 </p>
1725 <p>
1844 <p>
1726 The files will be added to the repository at the next commit. To
1845 The files will be added to the repository at the next commit. To
1727 undo an add before that, see &quot;hg forget&quot;.
1846 undo an add before that, see &quot;hg forget&quot;.
1728 </p>
1847 </p>
1729 <p>
1848 <p>
1730 If no names are given, add all files to the repository.
1849 If no names are given, add all files to the repository.
1731 </p>
1850 </p>
1732 <p>
1851 <p>
1733 An example showing how new (unknown) files are added
1852 An example showing how new (unknown) files are added
1734 automatically by &quot;hg add&quot;:
1853 automatically by &quot;hg add&quot;:
1735 </p>
1854 </p>
1736 <pre>
1855 <pre>
1737 \$ ls (re)
1856 \$ ls (re)
1738 foo.c
1857 foo.c
1739 \$ hg status (re)
1858 \$ hg status (re)
1740 ? foo.c
1859 ? foo.c
1741 \$ hg add (re)
1860 \$ hg add (re)
1742 adding foo.c
1861 adding foo.c
1743 \$ hg status (re)
1862 \$ hg status (re)
1744 A foo.c
1863 A foo.c
1745 </pre>
1864 </pre>
1746 <p>
1865 <p>
1747 Returns 0 if all files are successfully added.
1866 Returns 0 if all files are successfully added.
1748 </p>
1867 </p>
1749 <p>
1868 <p>
1750 options ([+] can be repeated):
1869 options ([+] can be repeated):
1751 </p>
1870 </p>
1752 <table>
1871 <table>
1753 <tr><td>-I</td>
1872 <tr><td>-I</td>
1754 <td>--include PATTERN [+]</td>
1873 <td>--include PATTERN [+]</td>
1755 <td>include names matching the given patterns</td></tr>
1874 <td>include names matching the given patterns</td></tr>
1756 <tr><td>-X</td>
1875 <tr><td>-X</td>
1757 <td>--exclude PATTERN [+]</td>
1876 <td>--exclude PATTERN [+]</td>
1758 <td>exclude names matching the given patterns</td></tr>
1877 <td>exclude names matching the given patterns</td></tr>
1759 <tr><td>-S</td>
1878 <tr><td>-S</td>
1760 <td>--subrepos</td>
1879 <td>--subrepos</td>
1761 <td>recurse into subrepositories</td></tr>
1880 <td>recurse into subrepositories</td></tr>
1762 <tr><td>-n</td>
1881 <tr><td>-n</td>
1763 <td>--dry-run</td>
1882 <td>--dry-run</td>
1764 <td>do not perform actions, just print output</td></tr>
1883 <td>do not perform actions, just print output</td></tr>
1765 </table>
1884 </table>
1766 <p>
1885 <p>
1767 global options ([+] can be repeated):
1886 global options ([+] can be repeated):
1768 </p>
1887 </p>
1769 <table>
1888 <table>
1770 <tr><td>-R</td>
1889 <tr><td>-R</td>
1771 <td>--repository REPO</td>
1890 <td>--repository REPO</td>
1772 <td>repository root directory or name of overlay bundle file</td></tr>
1891 <td>repository root directory or name of overlay bundle file</td></tr>
1773 <tr><td></td>
1892 <tr><td></td>
1774 <td>--cwd DIR</td>
1893 <td>--cwd DIR</td>
1775 <td>change working directory</td></tr>
1894 <td>change working directory</td></tr>
1776 <tr><td>-y</td>
1895 <tr><td>-y</td>
1777 <td>--noninteractive</td>
1896 <td>--noninteractive</td>
1778 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1897 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1779 <tr><td>-q</td>
1898 <tr><td>-q</td>
1780 <td>--quiet</td>
1899 <td>--quiet</td>
1781 <td>suppress output</td></tr>
1900 <td>suppress output</td></tr>
1782 <tr><td>-v</td>
1901 <tr><td>-v</td>
1783 <td>--verbose</td>
1902 <td>--verbose</td>
1784 <td>enable additional output</td></tr>
1903 <td>enable additional output</td></tr>
1785 <tr><td></td>
1904 <tr><td></td>
1786 <td>--config CONFIG [+]</td>
1905 <td>--config CONFIG [+]</td>
1787 <td>set/override config option (use 'section.name=value')</td></tr>
1906 <td>set/override config option (use 'section.name=value')</td></tr>
1788 <tr><td></td>
1907 <tr><td></td>
1789 <td>--debug</td>
1908 <td>--debug</td>
1790 <td>enable debugging output</td></tr>
1909 <td>enable debugging output</td></tr>
1791 <tr><td></td>
1910 <tr><td></td>
1792 <td>--debugger</td>
1911 <td>--debugger</td>
1793 <td>start debugger</td></tr>
1912 <td>start debugger</td></tr>
1794 <tr><td></td>
1913 <tr><td></td>
1795 <td>--encoding ENCODE</td>
1914 <td>--encoding ENCODE</td>
1796 <td>set the charset encoding (default: ascii)</td></tr>
1915 <td>set the charset encoding (default: ascii)</td></tr>
1797 <tr><td></td>
1916 <tr><td></td>
1798 <td>--encodingmode MODE</td>
1917 <td>--encodingmode MODE</td>
1799 <td>set the charset encoding mode (default: strict)</td></tr>
1918 <td>set the charset encoding mode (default: strict)</td></tr>
1800 <tr><td></td>
1919 <tr><td></td>
1801 <td>--traceback</td>
1920 <td>--traceback</td>
1802 <td>always print a traceback on exception</td></tr>
1921 <td>always print a traceback on exception</td></tr>
1803 <tr><td></td>
1922 <tr><td></td>
1804 <td>--time</td>
1923 <td>--time</td>
1805 <td>time how long the command takes</td></tr>
1924 <td>time how long the command takes</td></tr>
1806 <tr><td></td>
1925 <tr><td></td>
1807 <td>--profile</td>
1926 <td>--profile</td>
1808 <td>print command execution profile</td></tr>
1927 <td>print command execution profile</td></tr>
1809 <tr><td></td>
1928 <tr><td></td>
1810 <td>--version</td>
1929 <td>--version</td>
1811 <td>output version information and exit</td></tr>
1930 <td>output version information and exit</td></tr>
1812 <tr><td>-h</td>
1931 <tr><td>-h</td>
1813 <td>--help</td>
1932 <td>--help</td>
1814 <td>display help and exit</td></tr>
1933 <td>display help and exit</td></tr>
1815 <tr><td></td>
1934 <tr><td></td>
1816 <td>--hidden</td>
1935 <td>--hidden</td>
1817 <td>consider hidden changesets</td></tr>
1936 <td>consider hidden changesets</td></tr>
1818 </table>
1937 </table>
1819
1938
1820 </div>
1939 </div>
1821 </div>
1940 </div>
1822 </div>
1941 </div>
1823
1942
1824 <script type="text/javascript">process_dates()</script>
1943 <script type="text/javascript">process_dates()</script>
1825
1944
1826
1945
1827 </body>
1946 </body>
1828 </html>
1947 </html>
1829
1948
1830
1949
1831 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/remove"
1950 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/remove"
1832 200 Script output follows
1951 200 Script output follows
1833
1952
1834 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1953 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1835 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1954 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1836 <head>
1955 <head>
1837 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1956 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1838 <meta name="robots" content="index, nofollow" />
1957 <meta name="robots" content="index, nofollow" />
1839 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1958 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1840 <script type="text/javascript" src="/static/mercurial.js"></script>
1959 <script type="text/javascript" src="/static/mercurial.js"></script>
1841
1960
1842 <title>Help: remove</title>
1961 <title>Help: remove</title>
1843 </head>
1962 </head>
1844 <body>
1963 <body>
1845
1964
1846 <div class="container">
1965 <div class="container">
1847 <div class="menu">
1966 <div class="menu">
1848 <div class="logo">
1967 <div class="logo">
1849 <a href="http://mercurial.selenic.com/">
1968 <a href="http://mercurial.selenic.com/">
1850 <img src="/static/hglogo.png" alt="mercurial" /></a>
1969 <img src="/static/hglogo.png" alt="mercurial" /></a>
1851 </div>
1970 </div>
1852 <ul>
1971 <ul>
1853 <li><a href="/shortlog">log</a></li>
1972 <li><a href="/shortlog">log</a></li>
1854 <li><a href="/graph">graph</a></li>
1973 <li><a href="/graph">graph</a></li>
1855 <li><a href="/tags">tags</a></li>
1974 <li><a href="/tags">tags</a></li>
1856 <li><a href="/bookmarks">bookmarks</a></li>
1975 <li><a href="/bookmarks">bookmarks</a></li>
1857 <li><a href="/branches">branches</a></li>
1976 <li><a href="/branches">branches</a></li>
1858 </ul>
1977 </ul>
1859 <ul>
1978 <ul>
1860 <li class="active"><a href="/help">help</a></li>
1979 <li class="active"><a href="/help">help</a></li>
1861 </ul>
1980 </ul>
1862 </div>
1981 </div>
1863
1982
1864 <div class="main">
1983 <div class="main">
1865 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1984 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1866 <h3>Help: remove</h3>
1985 <h3>Help: remove</h3>
1867
1986
1868 <form class="search" action="/log">
1987 <form class="search" action="/log">
1869
1988
1870 <p><input name="rev" id="search1" type="text" size="30" /></p>
1989 <p><input name="rev" id="search1" type="text" size="30" /></p>
1871 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1990 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1872 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1991 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1873 </form>
1992 </form>
1874 <div id="doc">
1993 <div id="doc">
1875 <p>
1994 <p>
1876 hg remove [OPTION]... FILE...
1995 hg remove [OPTION]... FILE...
1877 </p>
1996 </p>
1878 <p>
1997 <p>
1879 aliases: rm
1998 aliases: rm
1880 </p>
1999 </p>
1881 <p>
2000 <p>
1882 remove the specified files on the next commit
2001 remove the specified files on the next commit
1883 </p>
2002 </p>
1884 <p>
2003 <p>
1885 Schedule the indicated files for removal from the current branch.
2004 Schedule the indicated files for removal from the current branch.
1886 </p>
2005 </p>
1887 <p>
2006 <p>
1888 This command schedules the files to be removed at the next commit.
2007 This command schedules the files to be removed at the next commit.
1889 To undo a remove before that, see &quot;hg revert&quot;. To undo added
2008 To undo a remove before that, see &quot;hg revert&quot;. To undo added
1890 files, see &quot;hg forget&quot;.
2009 files, see &quot;hg forget&quot;.
1891 </p>
2010 </p>
1892 <p>
2011 <p>
1893 -A/--after can be used to remove only files that have already
2012 -A/--after can be used to remove only files that have already
1894 been deleted, -f/--force can be used to force deletion, and -Af
2013 been deleted, -f/--force can be used to force deletion, and -Af
1895 can be used to remove files from the next revision without
2014 can be used to remove files from the next revision without
1896 deleting them from the working directory.
2015 deleting them from the working directory.
1897 </p>
2016 </p>
1898 <p>
2017 <p>
1899 The following table details the behavior of remove for different
2018 The following table details the behavior of remove for different
1900 file states (columns) and option combinations (rows). The file
2019 file states (columns) and option combinations (rows). The file
1901 states are Added [A], Clean [C], Modified [M] and Missing [!]
2020 states are Added [A], Clean [C], Modified [M] and Missing [!]
1902 (as reported by &quot;hg status&quot;). The actions are Warn, Remove
2021 (as reported by &quot;hg status&quot;). The actions are Warn, Remove
1903 (from branch) and Delete (from disk):
2022 (from branch) and Delete (from disk):
1904 </p>
2023 </p>
1905 <table>
2024 <table>
1906 <tr><td>opt/state</td>
2025 <tr><td>opt/state</td>
1907 <td>A</td>
2026 <td>A</td>
1908 <td>C</td>
2027 <td>C</td>
1909 <td>M</td>
2028 <td>M</td>
1910 <td>!</td></tr>
2029 <td>!</td></tr>
1911 <tr><td>none</td>
2030 <tr><td>none</td>
1912 <td>W</td>
2031 <td>W</td>
1913 <td>RD</td>
2032 <td>RD</td>
1914 <td>W</td>
2033 <td>W</td>
1915 <td>R</td></tr>
2034 <td>R</td></tr>
1916 <tr><td>-f</td>
2035 <tr><td>-f</td>
1917 <td>R</td>
2036 <td>R</td>
1918 <td>RD</td>
2037 <td>RD</td>
1919 <td>RD</td>
2038 <td>RD</td>
1920 <td>R</td></tr>
2039 <td>R</td></tr>
1921 <tr><td>-A</td>
2040 <tr><td>-A</td>
1922 <td>W</td>
2041 <td>W</td>
1923 <td>W</td>
2042 <td>W</td>
1924 <td>W</td>
2043 <td>W</td>
1925 <td>R</td></tr>
2044 <td>R</td></tr>
1926 <tr><td>-Af</td>
2045 <tr><td>-Af</td>
1927 <td>R</td>
2046 <td>R</td>
1928 <td>R</td>
2047 <td>R</td>
1929 <td>R</td>
2048 <td>R</td>
1930 <td>R</td></tr>
2049 <td>R</td></tr>
1931 </table>
2050 </table>
1932 <p>
2051 <p>
1933 Note that remove never deletes files in Added [A] state from the
2052 Note that remove never deletes files in Added [A] state from the
1934 working directory, not even if option --force is specified.
2053 working directory, not even if option --force is specified.
1935 </p>
2054 </p>
1936 <p>
2055 <p>
1937 Returns 0 on success, 1 if any warnings encountered.
2056 Returns 0 on success, 1 if any warnings encountered.
1938 </p>
2057 </p>
1939 <p>
2058 <p>
1940 options ([+] can be repeated):
2059 options ([+] can be repeated):
1941 </p>
2060 </p>
1942 <table>
2061 <table>
1943 <tr><td>-A</td>
2062 <tr><td>-A</td>
1944 <td>--after</td>
2063 <td>--after</td>
1945 <td>record delete for missing files</td></tr>
2064 <td>record delete for missing files</td></tr>
1946 <tr><td>-f</td>
2065 <tr><td>-f</td>
1947 <td>--force</td>
2066 <td>--force</td>
1948 <td>remove (and delete) file even if added or modified</td></tr>
2067 <td>remove (and delete) file even if added or modified</td></tr>
1949 <tr><td>-S</td>
2068 <tr><td>-S</td>
1950 <td>--subrepos</td>
2069 <td>--subrepos</td>
1951 <td>recurse into subrepositories</td></tr>
2070 <td>recurse into subrepositories</td></tr>
1952 <tr><td>-I</td>
2071 <tr><td>-I</td>
1953 <td>--include PATTERN [+]</td>
2072 <td>--include PATTERN [+]</td>
1954 <td>include names matching the given patterns</td></tr>
2073 <td>include names matching the given patterns</td></tr>
1955 <tr><td>-X</td>
2074 <tr><td>-X</td>
1956 <td>--exclude PATTERN [+]</td>
2075 <td>--exclude PATTERN [+]</td>
1957 <td>exclude names matching the given patterns</td></tr>
2076 <td>exclude names matching the given patterns</td></tr>
1958 </table>
2077 </table>
1959 <p>
2078 <p>
1960 global options ([+] can be repeated):
2079 global options ([+] can be repeated):
1961 </p>
2080 </p>
1962 <table>
2081 <table>
1963 <tr><td>-R</td>
2082 <tr><td>-R</td>
1964 <td>--repository REPO</td>
2083 <td>--repository REPO</td>
1965 <td>repository root directory or name of overlay bundle file</td></tr>
2084 <td>repository root directory or name of overlay bundle file</td></tr>
1966 <tr><td></td>
2085 <tr><td></td>
1967 <td>--cwd DIR</td>
2086 <td>--cwd DIR</td>
1968 <td>change working directory</td></tr>
2087 <td>change working directory</td></tr>
1969 <tr><td>-y</td>
2088 <tr><td>-y</td>
1970 <td>--noninteractive</td>
2089 <td>--noninteractive</td>
1971 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
2090 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1972 <tr><td>-q</td>
2091 <tr><td>-q</td>
1973 <td>--quiet</td>
2092 <td>--quiet</td>
1974 <td>suppress output</td></tr>
2093 <td>suppress output</td></tr>
1975 <tr><td>-v</td>
2094 <tr><td>-v</td>
1976 <td>--verbose</td>
2095 <td>--verbose</td>
1977 <td>enable additional output</td></tr>
2096 <td>enable additional output</td></tr>
1978 <tr><td></td>
2097 <tr><td></td>
1979 <td>--config CONFIG [+]</td>
2098 <td>--config CONFIG [+]</td>
1980 <td>set/override config option (use 'section.name=value')</td></tr>
2099 <td>set/override config option (use 'section.name=value')</td></tr>
1981 <tr><td></td>
2100 <tr><td></td>
1982 <td>--debug</td>
2101 <td>--debug</td>
1983 <td>enable debugging output</td></tr>
2102 <td>enable debugging output</td></tr>
1984 <tr><td></td>
2103 <tr><td></td>
1985 <td>--debugger</td>
2104 <td>--debugger</td>
1986 <td>start debugger</td></tr>
2105 <td>start debugger</td></tr>
1987 <tr><td></td>
2106 <tr><td></td>
1988 <td>--encoding ENCODE</td>
2107 <td>--encoding ENCODE</td>
1989 <td>set the charset encoding (default: ascii)</td></tr>
2108 <td>set the charset encoding (default: ascii)</td></tr>
1990 <tr><td></td>
2109 <tr><td></td>
1991 <td>--encodingmode MODE</td>
2110 <td>--encodingmode MODE</td>
1992 <td>set the charset encoding mode (default: strict)</td></tr>
2111 <td>set the charset encoding mode (default: strict)</td></tr>
1993 <tr><td></td>
2112 <tr><td></td>
1994 <td>--traceback</td>
2113 <td>--traceback</td>
1995 <td>always print a traceback on exception</td></tr>
2114 <td>always print a traceback on exception</td></tr>
1996 <tr><td></td>
2115 <tr><td></td>
1997 <td>--time</td>
2116 <td>--time</td>
1998 <td>time how long the command takes</td></tr>
2117 <td>time how long the command takes</td></tr>
1999 <tr><td></td>
2118 <tr><td></td>
2000 <td>--profile</td>
2119 <td>--profile</td>
2001 <td>print command execution profile</td></tr>
2120 <td>print command execution profile</td></tr>
2002 <tr><td></td>
2121 <tr><td></td>
2003 <td>--version</td>
2122 <td>--version</td>
2004 <td>output version information and exit</td></tr>
2123 <td>output version information and exit</td></tr>
2005 <tr><td>-h</td>
2124 <tr><td>-h</td>
2006 <td>--help</td>
2125 <td>--help</td>
2007 <td>display help and exit</td></tr>
2126 <td>display help and exit</td></tr>
2008 <tr><td></td>
2127 <tr><td></td>
2009 <td>--hidden</td>
2128 <td>--hidden</td>
2010 <td>consider hidden changesets</td></tr>
2129 <td>consider hidden changesets</td></tr>
2011 </table>
2130 </table>
2012
2131
2013 </div>
2132 </div>
2014 </div>
2133 </div>
2015 </div>
2134 </div>
2016
2135
2017 <script type="text/javascript">process_dates()</script>
2136 <script type="text/javascript">process_dates()</script>
2018
2137
2019
2138
2020 </body>
2139 </body>
2021 </html>
2140 </html>
2022
2141
2023
2142
2024 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/revisions"
2143 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/revisions"
2025 200 Script output follows
2144 200 Script output follows
2026
2145
2027 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2146 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2028 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2147 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2029 <head>
2148 <head>
2030 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2149 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2031 <meta name="robots" content="index, nofollow" />
2150 <meta name="robots" content="index, nofollow" />
2032 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2151 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2033 <script type="text/javascript" src="/static/mercurial.js"></script>
2152 <script type="text/javascript" src="/static/mercurial.js"></script>
2034
2153
2035 <title>Help: revisions</title>
2154 <title>Help: revisions</title>
2036 </head>
2155 </head>
2037 <body>
2156 <body>
2038
2157
2039 <div class="container">
2158 <div class="container">
2040 <div class="menu">
2159 <div class="menu">
2041 <div class="logo">
2160 <div class="logo">
2042 <a href="http://mercurial.selenic.com/">
2161 <a href="http://mercurial.selenic.com/">
2043 <img src="/static/hglogo.png" alt="mercurial" /></a>
2162 <img src="/static/hglogo.png" alt="mercurial" /></a>
2044 </div>
2163 </div>
2045 <ul>
2164 <ul>
2046 <li><a href="/shortlog">log</a></li>
2165 <li><a href="/shortlog">log</a></li>
2047 <li><a href="/graph">graph</a></li>
2166 <li><a href="/graph">graph</a></li>
2048 <li><a href="/tags">tags</a></li>
2167 <li><a href="/tags">tags</a></li>
2049 <li><a href="/bookmarks">bookmarks</a></li>
2168 <li><a href="/bookmarks">bookmarks</a></li>
2050 <li><a href="/branches">branches</a></li>
2169 <li><a href="/branches">branches</a></li>
2051 </ul>
2170 </ul>
2052 <ul>
2171 <ul>
2053 <li class="active"><a href="/help">help</a></li>
2172 <li class="active"><a href="/help">help</a></li>
2054 </ul>
2173 </ul>
2055 </div>
2174 </div>
2056
2175
2057 <div class="main">
2176 <div class="main">
2058 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2177 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2059 <h3>Help: revisions</h3>
2178 <h3>Help: revisions</h3>
2060
2179
2061 <form class="search" action="/log">
2180 <form class="search" action="/log">
2062
2181
2063 <p><input name="rev" id="search1" type="text" size="30" /></p>
2182 <p><input name="rev" id="search1" type="text" size="30" /></p>
2064 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2183 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2065 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2184 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2066 </form>
2185 </form>
2067 <div id="doc">
2186 <div id="doc">
2068 <h1>Specifying Single Revisions</h1>
2187 <h1>Specifying Single Revisions</h1>
2069 <p>
2188 <p>
2070 Mercurial supports several ways to specify individual revisions.
2189 Mercurial supports several ways to specify individual revisions.
2071 </p>
2190 </p>
2072 <p>
2191 <p>
2073 A plain integer is treated as a revision number. Negative integers are
2192 A plain integer is treated as a revision number. Negative integers are
2074 treated as sequential offsets from the tip, with -1 denoting the tip,
2193 treated as sequential offsets from the tip, with -1 denoting the tip,
2075 -2 denoting the revision prior to the tip, and so forth.
2194 -2 denoting the revision prior to the tip, and so forth.
2076 </p>
2195 </p>
2077 <p>
2196 <p>
2078 A 40-digit hexadecimal string is treated as a unique revision
2197 A 40-digit hexadecimal string is treated as a unique revision
2079 identifier.
2198 identifier.
2080 </p>
2199 </p>
2081 <p>
2200 <p>
2082 A hexadecimal string less than 40 characters long is treated as a
2201 A hexadecimal string less than 40 characters long is treated as a
2083 unique revision identifier and is referred to as a short-form
2202 unique revision identifier and is referred to as a short-form
2084 identifier. A short-form identifier is only valid if it is the prefix
2203 identifier. A short-form identifier is only valid if it is the prefix
2085 of exactly one full-length identifier.
2204 of exactly one full-length identifier.
2086 </p>
2205 </p>
2087 <p>
2206 <p>
2088 Any other string is treated as a bookmark, tag, or branch name. A
2207 Any other string is treated as a bookmark, tag, or branch name. A
2089 bookmark is a movable pointer to a revision. A tag is a permanent name
2208 bookmark is a movable pointer to a revision. A tag is a permanent name
2090 associated with a revision. A branch name denotes the tipmost open branch head
2209 associated with a revision. A branch name denotes the tipmost open branch head
2091 of that branch - or if they are all closed, the tipmost closed head of the
2210 of that branch - or if they are all closed, the tipmost closed head of the
2092 branch. Bookmark, tag, and branch names must not contain the &quot;:&quot; character.
2211 branch. Bookmark, tag, and branch names must not contain the &quot;:&quot; character.
2093 </p>
2212 </p>
2094 <p>
2213 <p>
2095 The reserved name &quot;tip&quot; always identifies the most recent revision.
2214 The reserved name &quot;tip&quot; always identifies the most recent revision.
2096 </p>
2215 </p>
2097 <p>
2216 <p>
2098 The reserved name &quot;null&quot; indicates the null revision. This is the
2217 The reserved name &quot;null&quot; indicates the null revision. This is the
2099 revision of an empty repository, and the parent of revision 0.
2218 revision of an empty repository, and the parent of revision 0.
2100 </p>
2219 </p>
2101 <p>
2220 <p>
2102 The reserved name &quot;.&quot; indicates the working directory parent. If no
2221 The reserved name &quot;.&quot; indicates the working directory parent. If no
2103 working directory is checked out, it is equivalent to null. If an
2222 working directory is checked out, it is equivalent to null. If an
2104 uncommitted merge is in progress, &quot;.&quot; is the revision of the first
2223 uncommitted merge is in progress, &quot;.&quot; is the revision of the first
2105 parent.
2224 parent.
2106 </p>
2225 </p>
2107
2226
2108 </div>
2227 </div>
2109 </div>
2228 </div>
2110 </div>
2229 </div>
2111
2230
2112 <script type="text/javascript">process_dates()</script>
2231 <script type="text/javascript">process_dates()</script>
2113
2232
2114
2233
2115 </body>
2234 </body>
2116 </html>
2235 </html>
2117
2236
2118
2237
2119 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
2238 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
2120
2239
2121 #endif
2240 #endif
General Comments 0
You need to be logged in to leave comments. Login now