##// END OF EJS Templates
test-help: improve test coverage...
Henri Wiechers -
r10139:d09bed52 default
parent child Browse files
Show More
@@ -1,23 +1,27 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 hg
3 hg
4 hg -q
4 hg -q
5 hg help
5 hg help
6 hg -q help
6 hg -q help
7
7
8 echo %% test short command list with verbose option
8 echo %% test short command list with verbose option
9 hg -v help shortlist | sed 's/[(]version [^)]*[)]/(version xxx)/'
9 hg -v help shortlist | sed 's/[(]version [^)]*[)]/(version xxx)/'
10
10
11 hg add -h
11 hg add -h
12
12
13 echo %% test help option with version option
13 echo %% test help option with version option
14 hg add -h --version | sed 's/[(]version [^)]*[)]/(version xxx)/'
14 hg add -h --version | sed 's/[(]version [^)]*[)]/(version xxx)/'
15
15
16 hg add --skjdfks
16 hg add --skjdfks
17
18 echo %% test ambiguous command help
19 hg help ad
20
17 hg help diff
21 hg help diff
18 hg help status
22 hg help status
19 hg -q help status
23 hg -q help status
20 hg help foo
24 hg help foo
21 hg skjdfks
25 hg skjdfks
22
26
23 exit 0
27 exit 0
@@ -1,444 +1,451 b''
1 Mercurial Distributed SCM
1 Mercurial Distributed SCM
2
2
3 basic commands:
3 basic commands:
4
4
5 add add the specified files on the next commit
5 add add the specified files on the next commit
6 annotate show changeset information by line for each file
6 annotate show changeset information by line for each file
7 clone make a copy of an existing repository
7 clone make a copy of an existing repository
8 commit commit the specified files or all outstanding changes
8 commit commit the specified files or all outstanding changes
9 diff diff repository (or selected files)
9 diff diff repository (or selected files)
10 export dump the header and diffs for one or more changesets
10 export dump the header and diffs for one or more changesets
11 forget forget the specified files on the next commit
11 forget forget the specified files on the next commit
12 init create a new repository in the given directory
12 init create a new repository in the given directory
13 log show revision history of entire repository or files
13 log show revision history of entire repository or files
14 merge merge working directory with another revision
14 merge merge working directory with another revision
15 pull pull changes from the specified source
15 pull pull changes from the specified source
16 push push changes to the specified destination
16 push push changes to the specified destination
17 remove remove the specified files on the next commit
17 remove remove the specified files on the next commit
18 serve export the repository via HTTP
18 serve export the repository via HTTP
19 status show changed files in the working directory
19 status show changed files in the working directory
20 summary summarize working directory state
20 summary summarize working directory state
21 update update working directory
21 update update working directory
22
22
23 use "hg help" for the full list of commands or "hg -v" for details
23 use "hg help" for the full list of commands or "hg -v" for details
24 add add the specified files on the next commit
24 add add the specified files on the next commit
25 annotate show changeset information by line for each file
25 annotate show changeset information by line for each file
26 clone make a copy of an existing repository
26 clone make a copy of an existing repository
27 commit commit the specified files or all outstanding changes
27 commit commit the specified files or all outstanding changes
28 diff diff repository (or selected files)
28 diff diff repository (or selected files)
29 export dump the header and diffs for one or more changesets
29 export dump the header and diffs for one or more changesets
30 forget forget the specified files on the next commit
30 forget forget the specified files on the next commit
31 init create a new repository in the given directory
31 init create a new repository in the given directory
32 log show revision history of entire repository or files
32 log show revision history of entire repository or files
33 merge merge working directory with another revision
33 merge merge working directory with another revision
34 pull pull changes from the specified source
34 pull pull changes from the specified source
35 push push changes to the specified destination
35 push push changes to the specified destination
36 remove remove the specified files on the next commit
36 remove remove the specified files on the next commit
37 serve export the repository via HTTP
37 serve export the repository via HTTP
38 status show changed files in the working directory
38 status show changed files in the working directory
39 summary summarize working directory state
39 summary summarize working directory state
40 update update working directory
40 update update working directory
41 Mercurial Distributed SCM
41 Mercurial Distributed SCM
42
42
43 list of commands:
43 list of commands:
44
44
45 add add the specified files on the next commit
45 add add the specified files on the next commit
46 addremove add all new files, delete all missing files
46 addremove add all new files, delete all missing files
47 annotate show changeset information by line for each file
47 annotate show changeset information by line for each file
48 archive create an unversioned archive of a repository revision
48 archive create an unversioned archive of a repository revision
49 backout reverse effect of earlier changeset
49 backout reverse effect of earlier changeset
50 bisect subdivision search of changesets
50 bisect subdivision search of changesets
51 branch set or show the current branch name
51 branch set or show the current branch name
52 branches list repository named branches
52 branches list repository named branches
53 bundle create a changegroup file
53 bundle create a changegroup file
54 cat output the current or given revision of files
54 cat output the current or given revision of files
55 clone make a copy of an existing repository
55 clone make a copy of an existing repository
56 commit commit the specified files or all outstanding changes
56 commit commit the specified files or all outstanding changes
57 copy mark files as copied for the next commit
57 copy mark files as copied for the next commit
58 diff diff repository (or selected files)
58 diff diff repository (or selected files)
59 export dump the header and diffs for one or more changesets
59 export dump the header and diffs for one or more changesets
60 forget forget the specified files on the next commit
60 forget forget the specified files on the next commit
61 grep search for a pattern in specified files and revisions
61 grep search for a pattern in specified files and revisions
62 heads show current repository heads or show branch heads
62 heads show current repository heads or show branch heads
63 help show help for a given topic or a help overview
63 help show help for a given topic or a help overview
64 identify identify the working copy or specified revision
64 identify identify the working copy or specified revision
65 import import an ordered set of patches
65 import import an ordered set of patches
66 incoming show new changesets found in source
66 incoming show new changesets found in source
67 init create a new repository in the given directory
67 init create a new repository in the given directory
68 locate locate files matching specific patterns
68 locate locate files matching specific patterns
69 log show revision history of entire repository or files
69 log show revision history of entire repository or files
70 manifest output the current or given revision of the project manifest
70 manifest output the current or given revision of the project manifest
71 merge merge working directory with another revision
71 merge merge working directory with another revision
72 outgoing show changesets not found in destination
72 outgoing show changesets not found in destination
73 parents show the parents of the working directory or revision
73 parents show the parents of the working directory or revision
74 paths show aliases for remote repositories
74 paths show aliases for remote repositories
75 pull pull changes from the specified source
75 pull pull changes from the specified source
76 push push changes to the specified destination
76 push push changes to the specified destination
77 recover roll back an interrupted transaction
77 recover roll back an interrupted transaction
78 remove remove the specified files on the next commit
78 remove remove the specified files on the next commit
79 rename rename files; equivalent of copy + remove
79 rename rename files; equivalent of copy + remove
80 resolve retry file merges from a merge or update
80 resolve retry file merges from a merge or update
81 revert restore individual files or directories to an earlier state
81 revert restore individual files or directories to an earlier state
82 rollback roll back the last transaction
82 rollback roll back the last transaction
83 root print the root (top) of the current working directory
83 root print the root (top) of the current working directory
84 serve export the repository via HTTP
84 serve export the repository via HTTP
85 showconfig show combined config settings from all hgrc files
85 showconfig show combined config settings from all hgrc files
86 status show changed files in the working directory
86 status show changed files in the working directory
87 summary summarize working directory state
87 summary summarize working directory state
88 tag add one or more tags for the current or given revision
88 tag add one or more tags for the current or given revision
89 tags list repository tags
89 tags list repository tags
90 tip show the tip revision
90 tip show the tip revision
91 unbundle apply one or more changegroup files
91 unbundle apply one or more changegroup files
92 update update working directory
92 update update working directory
93 verify verify the integrity of the repository
93 verify verify the integrity of the repository
94 version output version and copyright information
94 version output version and copyright information
95
95
96 additional help topics:
96 additional help topics:
97
97
98 config Configuration Files
98 config Configuration Files
99 dates Date Formats
99 dates Date Formats
100 patterns File Name Patterns
100 patterns File Name Patterns
101 environment Environment Variables
101 environment Environment Variables
102 revisions Specifying Single Revisions
102 revisions Specifying Single Revisions
103 multirevs Specifying Multiple Revisions
103 multirevs Specifying Multiple Revisions
104 diffs Diff Formats
104 diffs Diff Formats
105 templating Template Usage
105 templating Template Usage
106 urls URL Paths
106 urls URL Paths
107 extensions Using additional features
107 extensions Using additional features
108
108
109 use "hg -v help" to show aliases and global options
109 use "hg -v help" to show aliases and global options
110 add add the specified files on the next commit
110 add add the specified files on the next commit
111 addremove add all new files, delete all missing files
111 addremove add all new files, delete all missing files
112 annotate show changeset information by line for each file
112 annotate show changeset information by line for each file
113 archive create an unversioned archive of a repository revision
113 archive create an unversioned archive of a repository revision
114 backout reverse effect of earlier changeset
114 backout reverse effect of earlier changeset
115 bisect subdivision search of changesets
115 bisect subdivision search of changesets
116 branch set or show the current branch name
116 branch set or show the current branch name
117 branches list repository named branches
117 branches list repository named branches
118 bundle create a changegroup file
118 bundle create a changegroup file
119 cat output the current or given revision of files
119 cat output the current or given revision of files
120 clone make a copy of an existing repository
120 clone make a copy of an existing repository
121 commit commit the specified files or all outstanding changes
121 commit commit the specified files or all outstanding changes
122 copy mark files as copied for the next commit
122 copy mark files as copied for the next commit
123 diff diff repository (or selected files)
123 diff diff repository (or selected files)
124 export dump the header and diffs for one or more changesets
124 export dump the header and diffs for one or more changesets
125 forget forget the specified files on the next commit
125 forget forget the specified files on the next commit
126 grep search for a pattern in specified files and revisions
126 grep search for a pattern in specified files and revisions
127 heads show current repository heads or show branch heads
127 heads show current repository heads or show branch heads
128 help show help for a given topic or a help overview
128 help show help for a given topic or a help overview
129 identify identify the working copy or specified revision
129 identify identify the working copy or specified revision
130 import import an ordered set of patches
130 import import an ordered set of patches
131 incoming show new changesets found in source
131 incoming show new changesets found in source
132 init create a new repository in the given directory
132 init create a new repository in the given directory
133 locate locate files matching specific patterns
133 locate locate files matching specific patterns
134 log show revision history of entire repository or files
134 log show revision history of entire repository or files
135 manifest output the current or given revision of the project manifest
135 manifest output the current or given revision of the project manifest
136 merge merge working directory with another revision
136 merge merge working directory with another revision
137 outgoing show changesets not found in destination
137 outgoing show changesets not found in destination
138 parents show the parents of the working directory or revision
138 parents show the parents of the working directory or revision
139 paths show aliases for remote repositories
139 paths show aliases for remote repositories
140 pull pull changes from the specified source
140 pull pull changes from the specified source
141 push push changes to the specified destination
141 push push changes to the specified destination
142 recover roll back an interrupted transaction
142 recover roll back an interrupted transaction
143 remove remove the specified files on the next commit
143 remove remove the specified files on the next commit
144 rename rename files; equivalent of copy + remove
144 rename rename files; equivalent of copy + remove
145 resolve retry file merges from a merge or update
145 resolve retry file merges from a merge or update
146 revert restore individual files or directories to an earlier state
146 revert restore individual files or directories to an earlier state
147 rollback roll back the last transaction
147 rollback roll back the last transaction
148 root print the root (top) of the current working directory
148 root print the root (top) of the current working directory
149 serve export the repository via HTTP
149 serve export the repository via HTTP
150 showconfig show combined config settings from all hgrc files
150 showconfig show combined config settings from all hgrc files
151 status show changed files in the working directory
151 status show changed files in the working directory
152 summary summarize working directory state
152 summary summarize working directory state
153 tag add one or more tags for the current or given revision
153 tag add one or more tags for the current or given revision
154 tags list repository tags
154 tags list repository tags
155 tip show the tip revision
155 tip show the tip revision
156 unbundle apply one or more changegroup files
156 unbundle apply one or more changegroup files
157 update update working directory
157 update update working directory
158 verify verify the integrity of the repository
158 verify verify the integrity of the repository
159 version output version and copyright information
159 version output version and copyright information
160
160
161 additional help topics:
161 additional help topics:
162
162
163 config Configuration Files
163 config Configuration Files
164 dates Date Formats
164 dates Date Formats
165 patterns File Name Patterns
165 patterns File Name Patterns
166 environment Environment Variables
166 environment Environment Variables
167 revisions Specifying Single Revisions
167 revisions Specifying Single Revisions
168 multirevs Specifying Multiple Revisions
168 multirevs Specifying Multiple Revisions
169 diffs Diff Formats
169 diffs Diff Formats
170 templating Template Usage
170 templating Template Usage
171 urls URL Paths
171 urls URL Paths
172 extensions Using additional features
172 extensions Using additional features
173 %% test short command list with verbose option
173 %% test short command list with verbose option
174 Mercurial Distributed SCM (version xxx)
174 Mercurial Distributed SCM (version xxx)
175
175
176 Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others
176 Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others
177 This is free software; see the source for copying conditions. There is NO
177 This is free software; see the source for copying conditions. There is NO
178 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
178 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
179
179
180 basic commands:
180 basic commands:
181
181
182 add:
182 add:
183 add the specified files on the next commit
183 add the specified files on the next commit
184 annotate, blame:
184 annotate, blame:
185 show changeset information by line for each file
185 show changeset information by line for each file
186 clone:
186 clone:
187 make a copy of an existing repository
187 make a copy of an existing repository
188 commit, ci:
188 commit, ci:
189 commit the specified files or all outstanding changes
189 commit the specified files or all outstanding changes
190 diff:
190 diff:
191 diff repository (or selected files)
191 diff repository (or selected files)
192 export:
192 export:
193 dump the header and diffs for one or more changesets
193 dump the header and diffs for one or more changesets
194 forget:
194 forget:
195 forget the specified files on the next commit
195 forget the specified files on the next commit
196 init:
196 init:
197 create a new repository in the given directory
197 create a new repository in the given directory
198 log, history:
198 log, history:
199 show revision history of entire repository or files
199 show revision history of entire repository or files
200 merge:
200 merge:
201 merge working directory with another revision
201 merge working directory with another revision
202 pull:
202 pull:
203 pull changes from the specified source
203 pull changes from the specified source
204 push:
204 push:
205 push changes to the specified destination
205 push changes to the specified destination
206 remove, rm:
206 remove, rm:
207 remove the specified files on the next commit
207 remove the specified files on the next commit
208 serve:
208 serve:
209 export the repository via HTTP
209 export the repository via HTTP
210 status, st:
210 status, st:
211 show changed files in the working directory
211 show changed files in the working directory
212 summary, sum:
212 summary, sum:
213 summarize working directory state
213 summarize working directory state
214 update, up, checkout, co:
214 update, up, checkout, co:
215 update working directory
215 update working directory
216
216
217 global options:
217 global options:
218 -R --repository repository root directory or name of overlay bundle file
218 -R --repository repository root directory or name of overlay bundle file
219 --cwd change working directory
219 --cwd change working directory
220 -y --noninteractive do not prompt, assume 'yes' for any required answers
220 -y --noninteractive do not prompt, assume 'yes' for any required answers
221 -q --quiet suppress output
221 -q --quiet suppress output
222 -v --verbose enable additional output
222 -v --verbose enable additional output
223 --config set/override config option
223 --config set/override config option
224 --debug enable debugging output
224 --debug enable debugging output
225 --debugger start debugger
225 --debugger start debugger
226 --encoding set the charset encoding (default: ascii)
226 --encoding set the charset encoding (default: ascii)
227 --encodingmode set the charset encoding mode (default: strict)
227 --encodingmode set the charset encoding mode (default: strict)
228 --traceback always print a traceback on exception
228 --traceback always print a traceback on exception
229 --time time how long the command takes
229 --time time how long the command takes
230 --profile print command execution profile
230 --profile print command execution profile
231 --version output version information and exit
231 --version output version information and exit
232 -h --help display help and exit
232 -h --help display help and exit
233
233
234 use "hg help" for the full list of commands
234 use "hg help" for the full list of commands
235 hg add [OPTION]... [FILE]...
235 hg add [OPTION]... [FILE]...
236
236
237 add the specified files on the next commit
237 add the specified files on the next commit
238
238
239 Schedule files to be version controlled and added to the repository.
239 Schedule files to be version controlled and added to the repository.
240
240
241 The files will be added to the repository at the next commit. To undo an
241 The files will be added to the repository at the next commit. To undo an
242 add before that, see hg forget.
242 add before that, see hg forget.
243
243
244 If no names are given, add all files to the repository.
244 If no names are given, add all files to the repository.
245
245
246 options:
246 options:
247
247
248 -I --include include names matching the given patterns
248 -I --include include names matching the given patterns
249 -X --exclude exclude names matching the given patterns
249 -X --exclude exclude names matching the given patterns
250 -n --dry-run do not perform actions, just print output
250 -n --dry-run do not perform actions, just print output
251
251
252 use "hg -v help add" to show global options
252 use "hg -v help add" to show global options
253 %% test help option with version option
253 %% test help option with version option
254 Mercurial Distributed SCM (version xxx)
254 Mercurial Distributed SCM (version xxx)
255
255
256 Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others
256 Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others
257 This is free software; see the source for copying conditions. There is NO
257 This is free software; see the source for copying conditions. There is NO
258 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
258 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
259
259
260 hg add [OPTION]... [FILE]...
260 hg add [OPTION]... [FILE]...
261
261
262 add the specified files on the next commit
262 add the specified files on the next commit
263
263
264 Schedule files to be version controlled and added to the repository.
264 Schedule files to be version controlled and added to the repository.
265
265
266 The files will be added to the repository at the next commit. To undo an
266 The files will be added to the repository at the next commit. To undo an
267 add before that, see hg forget.
267 add before that, see hg forget.
268
268
269 If no names are given, add all files to the repository.
269 If no names are given, add all files to the repository.
270
270
271 options:
271 options:
272
272
273 -I --include include names matching the given patterns
273 -I --include include names matching the given patterns
274 -X --exclude exclude names matching the given patterns
274 -X --exclude exclude names matching the given patterns
275 -n --dry-run do not perform actions, just print output
275 -n --dry-run do not perform actions, just print output
276
276
277 use "hg -v help add" to show global options
277 use "hg -v help add" to show global options
278 hg add: option --skjdfks not recognized
278 hg add: option --skjdfks not recognized
279 hg add [OPTION]... [FILE]...
279 hg add [OPTION]... [FILE]...
280
280
281 add the specified files on the next commit
281 add the specified files on the next commit
282
282
283 Schedule files to be version controlled and added to the repository.
283 Schedule files to be version controlled and added to the repository.
284
284
285 The files will be added to the repository at the next commit. To undo an
285 The files will be added to the repository at the next commit. To undo an
286 add before that, see hg forget.
286 add before that, see hg forget.
287
287
288 If no names are given, add all files to the repository.
288 If no names are given, add all files to the repository.
289
289
290 options:
290 options:
291
291
292 -I --include include names matching the given patterns
292 -I --include include names matching the given patterns
293 -X --exclude exclude names matching the given patterns
293 -X --exclude exclude names matching the given patterns
294 -n --dry-run do not perform actions, just print output
294 -n --dry-run do not perform actions, just print output
295
295
296 use "hg -v help add" to show global options
296 use "hg -v help add" to show global options
297 %% test ambiguous command help
298 list of commands:
299
300 add add the specified files on the next commit
301 addremove add all new files, delete all missing files
302
303 use "hg -v help ad" to show aliases and global options
297 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
304 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
298
305
299 diff repository (or selected files)
306 diff repository (or selected files)
300
307
301 Show differences between revisions for the specified files.
308 Show differences between revisions for the specified files.
302
309
303 Differences between files are shown using the unified diff format.
310 Differences between files are shown using the unified diff format.
304
311
305 NOTE: diff may generate unexpected results for merges, as it will default
312 NOTE: diff may generate unexpected results for merges, as it will default
306 to comparing against the working directory's first parent changeset if no
313 to comparing against the working directory's first parent changeset if no
307 revisions are specified.
314 revisions are specified.
308
315
309 When two revision arguments are given, then changes are shown between
316 When two revision arguments are given, then changes are shown between
310 those revisions. If only one revision is specified then that revision is
317 those revisions. If only one revision is specified then that revision is
311 compared to the working directory, and, when no revisions are specified,
318 compared to the working directory, and, when no revisions are specified,
312 the working directory files are compared to its parent.
319 the working directory files are compared to its parent.
313
320
314 Without the -a/--text option, diff will avoid generating diffs of files it
321 Without the -a/--text option, diff will avoid generating diffs of files it
315 detects as binary. With -a, diff will generate a diff anyway, probably
322 detects as binary. With -a, diff will generate a diff anyway, probably
316 with undesirable results.
323 with undesirable results.
317
324
318 Use the -g/--git option to generate diffs in the git extended diff format.
325 Use the -g/--git option to generate diffs in the git extended diff format.
319 For more information, read 'hg help diffs'.
326 For more information, read 'hg help diffs'.
320
327
321 options:
328 options:
322
329
323 -r --rev revision
330 -r --rev revision
324 -c --change change made by revision
331 -c --change change made by revision
325 -a --text treat all files as text
332 -a --text treat all files as text
326 -g --git use git extended diff format
333 -g --git use git extended diff format
327 --nodates don't include dates in diff headers
334 --nodates don't include dates in diff headers
328 -p --show-function show which function each change is in
335 -p --show-function show which function each change is in
329 --reverse produce a diff that undoes the changes
336 --reverse produce a diff that undoes the changes
330 -w --ignore-all-space ignore white space when comparing lines
337 -w --ignore-all-space ignore white space when comparing lines
331 -b --ignore-space-change ignore changes in the amount of white space
338 -b --ignore-space-change ignore changes in the amount of white space
332 -B --ignore-blank-lines ignore changes whose lines are all blank
339 -B --ignore-blank-lines ignore changes whose lines are all blank
333 -U --unified number of lines of context to show
340 -U --unified number of lines of context to show
334 --stat output diffstat-style summary of changes
341 --stat output diffstat-style summary of changes
335 -I --include include names matching the given patterns
342 -I --include include names matching the given patterns
336 -X --exclude exclude names matching the given patterns
343 -X --exclude exclude names matching the given patterns
337
344
338 use "hg -v help diff" to show global options
345 use "hg -v help diff" to show global options
339 hg status [OPTION]... [FILE]...
346 hg status [OPTION]... [FILE]...
340
347
341 aliases: st
348 aliases: st
342
349
343 show changed files in the working directory
350 show changed files in the working directory
344
351
345 Show status of files in the repository. If names are given, only files
352 Show status of files in the repository. If names are given, only files
346 that match are shown. Files that are clean or ignored or the source of a
353 that match are shown. Files that are clean or ignored or the source of a
347 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
354 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
348 -C/--copies or -A/--all are given. Unless options described with "show
355 -C/--copies or -A/--all are given. Unless options described with "show
349 only ..." are given, the options -mardu are used.
356 only ..." are given, the options -mardu are used.
350
357
351 Option -q/--quiet hides untracked (unknown and ignored) files unless
358 Option -q/--quiet hides untracked (unknown and ignored) files unless
352 explicitly requested with -u/--unknown or -i/--ignored.
359 explicitly requested with -u/--unknown or -i/--ignored.
353
360
354 NOTE: status may appear to disagree with diff if permissions have changed
361 NOTE: status may appear to disagree with diff if permissions have changed
355 or a merge has occurred. The standard diff format does not report
362 or a merge has occurred. The standard diff format does not report
356 permission changes and diff only reports changes relative to one merge
363 permission changes and diff only reports changes relative to one merge
357 parent.
364 parent.
358
365
359 If one revision is given, it is used as the base revision. If two
366 If one revision is given, it is used as the base revision. If two
360 revisions are given, the differences between them are shown. The --change
367 revisions are given, the differences between them are shown. The --change
361 option can also be used as a shortcut to list the changed files of a
368 option can also be used as a shortcut to list the changed files of a
362 revision from its first parent.
369 revision from its first parent.
363
370
364 The codes used to show the status of files are:
371 The codes used to show the status of files are:
365
372
366 M = modified
373 M = modified
367 A = added
374 A = added
368 R = removed
375 R = removed
369 C = clean
376 C = clean
370 ! = missing (deleted by non-hg command, but still tracked)
377 ! = missing (deleted by non-hg command, but still tracked)
371 ? = not tracked
378 ? = not tracked
372 I = ignored
379 I = ignored
373 = origin of the previous file listed as A (added)
380 = origin of the previous file listed as A (added)
374
381
375 options:
382 options:
376
383
377 -A --all show status of all files
384 -A --all show status of all files
378 -m --modified show only modified files
385 -m --modified show only modified files
379 -a --added show only added files
386 -a --added show only added files
380 -r --removed show only removed files
387 -r --removed show only removed files
381 -d --deleted show only deleted (but tracked) files
388 -d --deleted show only deleted (but tracked) files
382 -c --clean show only files without changes
389 -c --clean show only files without changes
383 -u --unknown show only unknown (not tracked) files
390 -u --unknown show only unknown (not tracked) files
384 -i --ignored show only ignored files
391 -i --ignored show only ignored files
385 -n --no-status hide status prefix
392 -n --no-status hide status prefix
386 -C --copies show source of copied files
393 -C --copies show source of copied files
387 -0 --print0 end filenames with NUL, for use with xargs
394 -0 --print0 end filenames with NUL, for use with xargs
388 --rev show difference from revision
395 --rev show difference from revision
389 --change list the changed files of a revision
396 --change list the changed files of a revision
390 -I --include include names matching the given patterns
397 -I --include include names matching the given patterns
391 -X --exclude exclude names matching the given patterns
398 -X --exclude exclude names matching the given patterns
392
399
393 use "hg -v help status" to show global options
400 use "hg -v help status" to show global options
394 hg status [OPTION]... [FILE]...
401 hg status [OPTION]... [FILE]...
395
402
396 show changed files in the working directory
403 show changed files in the working directory
397 hg: unknown command 'foo'
404 hg: unknown command 'foo'
398 Mercurial Distributed SCM
405 Mercurial Distributed SCM
399
406
400 basic commands:
407 basic commands:
401
408
402 add add the specified files on the next commit
409 add add the specified files on the next commit
403 annotate show changeset information by line for each file
410 annotate show changeset information by line for each file
404 clone make a copy of an existing repository
411 clone make a copy of an existing repository
405 commit commit the specified files or all outstanding changes
412 commit commit the specified files or all outstanding changes
406 diff diff repository (or selected files)
413 diff diff repository (or selected files)
407 export dump the header and diffs for one or more changesets
414 export dump the header and diffs for one or more changesets
408 forget forget the specified files on the next commit
415 forget forget the specified files on the next commit
409 init create a new repository in the given directory
416 init create a new repository in the given directory
410 log show revision history of entire repository or files
417 log show revision history of entire repository or files
411 merge merge working directory with another revision
418 merge merge working directory with another revision
412 pull pull changes from the specified source
419 pull pull changes from the specified source
413 push push changes to the specified destination
420 push push changes to the specified destination
414 remove remove the specified files on the next commit
421 remove remove the specified files on the next commit
415 serve export the repository via HTTP
422 serve export the repository via HTTP
416 status show changed files in the working directory
423 status show changed files in the working directory
417 summary summarize working directory state
424 summary summarize working directory state
418 update update working directory
425 update update working directory
419
426
420 use "hg help" for the full list of commands or "hg -v" for details
427 use "hg help" for the full list of commands or "hg -v" for details
421 hg: unknown command 'skjdfks'
428 hg: unknown command 'skjdfks'
422 Mercurial Distributed SCM
429 Mercurial Distributed SCM
423
430
424 basic commands:
431 basic commands:
425
432
426 add add the specified files on the next commit
433 add add the specified files on the next commit
427 annotate show changeset information by line for each file
434 annotate show changeset information by line for each file
428 clone make a copy of an existing repository
435 clone make a copy of an existing repository
429 commit commit the specified files or all outstanding changes
436 commit commit the specified files or all outstanding changes
430 diff diff repository (or selected files)
437 diff diff repository (or selected files)
431 export dump the header and diffs for one or more changesets
438 export dump the header and diffs for one or more changesets
432 forget forget the specified files on the next commit
439 forget forget the specified files on the next commit
433 init create a new repository in the given directory
440 init create a new repository in the given directory
434 log show revision history of entire repository or files
441 log show revision history of entire repository or files
435 merge merge working directory with another revision
442 merge merge working directory with another revision
436 pull pull changes from the specified source
443 pull pull changes from the specified source
437 push push changes to the specified destination
444 push push changes to the specified destination
438 remove remove the specified files on the next commit
445 remove remove the specified files on the next commit
439 serve export the repository via HTTP
446 serve export the repository via HTTP
440 status show changed files in the working directory
447 status show changed files in the working directory
441 summary summarize working directory state
448 summary summarize working directory state
442 update update working directory
449 update update working directory
443
450
444 use "hg help" for the full list of commands or "hg -v" for details
451 use "hg help" for the full list of commands or "hg -v" for details
General Comments 0
You need to be logged in to leave comments. Login now