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