Show More
@@ -59,12 +59,12 def optrst(header, options, verbose): | |||
|
59 | 59 | |
|
60 | 60 | data.append((so, lo, desc)) |
|
61 | 61 | |
|
62 | if multioccur: | |
|
63 | header += (_(" ([+] can be repeated)")) | |
|
64 | ||
|
62 | 65 | rst = ['\n%s:\n\n' % header] |
|
63 | 66 | rst.extend(minirst.maketable(data, 1)) |
|
64 | 67 | |
|
65 | if multioccur: | |
|
66 | rst.append(_("\n[+] marked option can be specified multiple times\n")) | |
|
67 | ||
|
68 | 68 | return ''.join(rst) |
|
69 | 69 | |
|
70 | 70 | def indicateomitted(rst, omitted, notomitted=None): |
@@ -19,7 +19,7 Missing arg: | |||
|
19 | 19 | |
|
20 | 20 | output the current or given revision of files |
|
21 | 21 | |
|
22 | options: | |
|
22 | options ([+] can be repeated): | |
|
23 | 23 | |
|
24 | 24 | -o --output FORMAT print output to file with formatted name |
|
25 | 25 | -r --rev REV print the given revision |
@@ -27,8 +27,6 Missing arg: | |||
|
27 | 27 | -I --include PATTERN [+] include names matching the given patterns |
|
28 | 28 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
29 | 29 | |
|
30 | [+] marked option can be specified multiple times | |
|
31 | ||
|
32 | 30 | (use "hg cat -h" to show more help) |
|
33 | 31 | [255] |
|
34 | 32 |
@@ -37,7 +37,7 Should diff cloned directories: | |||
|
37 | 37 | compared to the working directory, and, when no revisions are specified, |
|
38 | 38 | the working directory files are compared to its parent. |
|
39 | 39 | |
|
40 | options: | |
|
40 | options ([+] can be repeated): | |
|
41 | 41 | |
|
42 | 42 | -o --option OPT [+] pass option to comparison program |
|
43 | 43 | -r --rev REV [+] revision |
@@ -45,8 +45,6 Should diff cloned directories: | |||
|
45 | 45 | -I --include PATTERN [+] include names matching the given patterns |
|
46 | 46 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
47 | 47 | |
|
48 | [+] marked option can be specified multiple times | |
|
49 | ||
|
50 | 48 | (some details hidden, use --verbose to show complete help) |
|
51 | 49 | |
|
52 | 50 | $ hg ci -d '0 0' -mtest1 |
@@ -301,7 +301,7 hide outer repo | |||
|
301 | 301 | |
|
302 | 302 | foo yet another foo command |
|
303 | 303 | |
|
304 | global options: | |
|
304 | global options ([+] can be repeated): | |
|
305 | 305 | |
|
306 | 306 | -R --repository REPO repository root directory or name of overlay bundle |
|
307 | 307 | file |
@@ -321,8 +321,6 hide outer repo | |||
|
321 | 321 | --version output version information and exit |
|
322 | 322 | -h --help display help and exit |
|
323 | 323 | --hidden consider hidden changesets |
|
324 | ||
|
325 | [+] marked option can be specified multiple times | |
|
326 | 324 | |
|
327 | 325 | |
|
328 | 326 | |
@@ -337,7 +335,7 hide outer repo | |||
|
337 | 335 | debugfoobar yet another debug command |
|
338 | 336 | foo yet another foo command |
|
339 | 337 | |
|
340 | global options: | |
|
338 | global options ([+] can be repeated): | |
|
341 | 339 | |
|
342 | 340 | -R --repository REPO repository root directory or name of overlay bundle |
|
343 | 341 | file |
@@ -357,8 +355,6 hide outer repo | |||
|
357 | 355 | --version output version information and exit |
|
358 | 356 | -h --help display help and exit |
|
359 | 357 | --hidden consider hidden changesets |
|
360 | ||
|
361 | [+] marked option can be specified multiple times | |
|
362 | 358 | |
|
363 | 359 | |
|
364 | 360 | |
@@ -390,7 +386,7 Extension module help vs command help: | |||
|
390 | 386 | |
|
391 | 387 | (use "hg help -e extdiff" to show help for the extdiff extension) |
|
392 | 388 | |
|
393 | options: | |
|
389 | options ([+] can be repeated): | |
|
394 | 390 | |
|
395 | 391 | -p --program CMD comparison program to run |
|
396 | 392 | -o --option OPT [+] pass option to comparison program |
@@ -399,8 +395,6 Extension module help vs command help: | |||
|
399 | 395 | -I --include PATTERN [+] include names matching the given patterns |
|
400 | 396 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
401 | 397 | |
|
402 | [+] marked option can be specified multiple times | |
|
403 | ||
|
404 | 398 | (some details hidden, use --verbose to show complete help) |
|
405 | 399 | |
|
406 | 400 |
@@ -305,7 +305,7 Test short command list with verbose opt | |||
|
305 | 305 | update, up, checkout, co |
|
306 | 306 | update working directory (or switch revisions) |
|
307 | 307 | |
|
308 | global options: | |
|
308 | global options ([+] can be repeated): | |
|
309 | 309 | |
|
310 | 310 | -R --repository REPO repository root directory or name of overlay bundle |
|
311 | 311 | file |
@@ -326,8 +326,6 Test short command list with verbose opt | |||
|
326 | 326 | -h --help display help and exit |
|
327 | 327 | --hidden consider hidden changesets |
|
328 | 328 | |
|
329 | [+] marked option can be specified multiple times | |
|
330 | ||
|
331 | 329 | use "hg help" for the full list of commands |
|
332 | 330 | |
|
333 | 331 | $ hg add -h |
@@ -344,15 +342,13 Test short command list with verbose opt | |||
|
344 | 342 | |
|
345 | 343 | Returns 0 if all files are successfully added. |
|
346 | 344 | |
|
347 | options: | |
|
345 | options ([+] can be repeated): | |
|
348 | 346 | |
|
349 | 347 | -I --include PATTERN [+] include names matching the given patterns |
|
350 | 348 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
351 | 349 | -S --subrepos recurse into subrepositories |
|
352 | 350 | -n --dry-run do not perform actions, just print output |
|
353 | 351 | |
|
354 | [+] marked option can be specified multiple times | |
|
355 | ||
|
356 | 352 | (some details hidden, use --verbose to show complete help) |
|
357 | 353 | |
|
358 | 354 | Verbose help for add |
@@ -383,16 +379,14 Verbose help for add | |||
|
383 | 379 | |
|
384 | 380 | Returns 0 if all files are successfully added. |
|
385 | 381 | |
|
386 | options: | |
|
382 | options ([+] can be repeated): | |
|
387 | 383 | |
|
388 | 384 | -I --include PATTERN [+] include names matching the given patterns |
|
389 | 385 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
390 | 386 | -S --subrepos recurse into subrepositories |
|
391 | 387 | -n --dry-run do not perform actions, just print output |
|
392 | 388 | |
|
393 | [+] marked option can be specified multiple times | |
|
394 | ||
|
395 | global options: | |
|
389 | global options ([+] can be repeated): | |
|
396 | 390 | |
|
397 | 391 | -R --repository REPO repository root directory or name of overlay bundle |
|
398 | 392 | file |
@@ -412,8 +406,6 Verbose help for add | |||
|
412 | 406 | --version output version information and exit |
|
413 | 407 | -h --help display help and exit |
|
414 | 408 | --hidden consider hidden changesets |
|
415 | ||
|
416 | [+] marked option can be specified multiple times | |
|
417 | 409 | |
|
418 | 410 | Test help option with version option |
|
419 | 411 | |
@@ -431,15 +423,13 Test help option with version option | |||
|
431 | 423 | |
|
432 | 424 | add the specified files on the next commit |
|
433 | 425 | |
|
434 | options: | |
|
426 | options ([+] can be repeated): | |
|
435 | 427 | |
|
436 | 428 | -I --include PATTERN [+] include names matching the given patterns |
|
437 | 429 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
438 | 430 | -S --subrepos recurse into subrepositories |
|
439 | 431 | -n --dry-run do not perform actions, just print output |
|
440 | 432 | |
|
441 | [+] marked option can be specified multiple times | |
|
442 | ||
|
443 | 433 | (use "hg add -h" to show more help) |
|
444 | 434 | [255] |
|
445 | 435 | |
@@ -505,7 +495,7 Test command without options | |||
|
505 | 495 | |
|
506 | 496 | Returns 0 on success. |
|
507 | 497 | |
|
508 | options: | |
|
498 | options ([+] can be repeated): | |
|
509 | 499 | |
|
510 | 500 | -r --rev REV [+] revision |
|
511 | 501 | -c --change REV change made by revision |
@@ -523,8 +513,6 Test command without options | |||
|
523 | 513 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
524 | 514 | -S --subrepos recurse into subrepositories |
|
525 | 515 | |
|
526 | [+] marked option can be specified multiple times | |
|
527 | ||
|
528 | 516 | (some details hidden, use --verbose to show complete help) |
|
529 | 517 | |
|
530 | 518 | $ hg help status |
@@ -567,7 +555,7 Test command without options | |||
|
567 | 555 | |
|
568 | 556 | Returns 0 on success. |
|
569 | 557 | |
|
570 | options: | |
|
558 | options ([+] can be repeated): | |
|
571 | 559 | |
|
572 | 560 | -A --all show status of all files |
|
573 | 561 | -m --modified show only modified files |
@@ -586,8 +574,6 Test command without options | |||
|
586 | 574 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
587 | 575 | -S --subrepos recurse into subrepositories |
|
588 | 576 | |
|
589 | [+] marked option can be specified multiple times | |
|
590 | ||
|
591 | 577 | (some details hidden, use --verbose to show complete help) |
|
592 | 578 | |
|
593 | 579 | $ hg -q help status |
@@ -1715,7 +1701,7 Dish up an empty repo; serve it cold. | |||
|
1715 | 1701 | Returns 0 if all files are successfully added. |
|
1716 | 1702 | </p> |
|
1717 | 1703 | <p> |
|
1718 | options: | |
|
1704 | options ([+] can be repeated): | |
|
1719 | 1705 | </p> |
|
1720 | 1706 | <table> |
|
1721 | 1707 | <tr><td>-I</td> |
@@ -1732,10 +1718,7 Dish up an empty repo; serve it cold. | |||
|
1732 | 1718 | <td>do not perform actions, just print output</td></tr> |
|
1733 | 1719 | </table> |
|
1734 | 1720 | <p> |
|
1735 | [+] marked option can be specified multiple times | |
|
1736 | </p> | |
|
1737 | <p> | |
|
1738 | global options: | |
|
1721 | global options ([+] can be repeated): | |
|
1739 | 1722 | </p> |
|
1740 | 1723 | <table> |
|
1741 | 1724 | <tr><td>-R</td> |
@@ -1787,9 +1770,6 Dish up an empty repo; serve it cold. | |||
|
1787 | 1770 | <td>--hidden</td> |
|
1788 | 1771 | <td>consider hidden changesets</td></tr> |
|
1789 | 1772 | </table> |
|
1790 | <p> | |
|
1791 | [+] marked option can be specified multiple times | |
|
1792 | </p> | |
|
1793 | 1773 | |
|
1794 | 1774 | </div> |
|
1795 | 1775 | </div> |
@@ -1911,7 +1891,7 Dish up an empty repo; serve it cold. | |||
|
1911 | 1891 | Returns 0 on success, 1 if any warnings encountered. |
|
1912 | 1892 | </p> |
|
1913 | 1893 | <p> |
|
1914 | options: | |
|
1894 | options ([+] can be repeated): | |
|
1915 | 1895 | </p> |
|
1916 | 1896 | <table> |
|
1917 | 1897 | <tr><td>-A</td> |
@@ -1928,10 +1908,7 Dish up an empty repo; serve it cold. | |||
|
1928 | 1908 | <td>exclude names matching the given patterns</td></tr> |
|
1929 | 1909 | </table> |
|
1930 | 1910 | <p> |
|
1931 | [+] marked option can be specified multiple times | |
|
1932 | </p> | |
|
1933 | <p> | |
|
1934 | global options: | |
|
1911 | global options ([+] can be repeated): | |
|
1935 | 1912 | </p> |
|
1936 | 1913 | <table> |
|
1937 | 1914 | <tr><td>-R</td> |
@@ -1983,9 +1960,6 Dish up an empty repo; serve it cold. | |||
|
1983 | 1960 | <td>--hidden</td> |
|
1984 | 1961 | <td>consider hidden changesets</td></tr> |
|
1985 | 1962 | </table> |
|
1986 | <p> | |
|
1987 | [+] marked option can be specified multiple times | |
|
1988 | </p> | |
|
1989 | 1963 | |
|
1990 | 1964 | </div> |
|
1991 | 1965 | </div> |
@@ -29,7 +29,7 help qrefresh (no record) | |||
|
29 | 29 | |
|
30 | 30 | Returns 0 on success. |
|
31 | 31 | |
|
32 | options: | |
|
32 | options ([+] can be repeated): | |
|
33 | 33 | |
|
34 | 34 | -e --edit invoke editor on commit messages |
|
35 | 35 | -g --git use git extended diff format |
@@ -44,8 +44,6 help qrefresh (no record) | |||
|
44 | 44 | -m --message TEXT use text as commit message |
|
45 | 45 | -l --logfile FILE read commit message from file |
|
46 | 46 | |
|
47 | [+] marked option can be specified multiple times | |
|
48 | ||
|
49 | 47 | (some details hidden, use --verbose to show complete help) |
|
50 | 48 | |
|
51 | 49 | help qrefresh (record) |
@@ -73,7 +71,7 help qrefresh (record) | |||
|
73 | 71 | |
|
74 | 72 | Returns 0 on success. |
|
75 | 73 | |
|
76 | options: | |
|
74 | options ([+] can be repeated): | |
|
77 | 75 | |
|
78 | 76 | -e --edit invoke editor on commit messages |
|
79 | 77 | -g --git use git extended diff format |
@@ -89,8 +87,6 help qrefresh (record) | |||
|
89 | 87 | -l --logfile FILE read commit message from file |
|
90 | 88 | -i --interactive interactively select changes to refresh |
|
91 | 89 | |
|
92 | [+] marked option can be specified multiple times | |
|
93 | ||
|
94 | 90 | (some details hidden, use --verbose to show complete help) |
|
95 | 91 | |
|
96 | 92 | $ hg init a |
@@ -54,7 +54,7 help record (record) | |||
|
54 | 54 | |
|
55 | 55 | This command is not available when committing a merge. |
|
56 | 56 | |
|
57 | options: | |
|
57 | options ([+] can be repeated): | |
|
58 | 58 | |
|
59 | 59 | -A --addremove mark new/missing files as added/removed before |
|
60 | 60 | committing |
@@ -74,8 +74,6 help record (record) | |||
|
74 | 74 | -b --ignore-space-change ignore changes in the amount of white space |
|
75 | 75 | -B --ignore-blank-lines ignore changes whose lines are all blank |
|
76 | 76 | |
|
77 | [+] marked option can be specified multiple times | |
|
78 | ||
|
79 | 77 | (some details hidden, use --verbose to show complete help) |
|
80 | 78 | |
|
81 | 79 | help (no mq, so no qrecord) |
@@ -133,7 +131,7 help (mq present) | |||
|
133 | 131 | |
|
134 | 132 | See "hg help qnew" & "hg help record" for more information and usage. |
|
135 | 133 | |
|
136 | options: | |
|
134 | options ([+] can be repeated): | |
|
137 | 135 | |
|
138 | 136 | -e --edit invoke editor on commit messages |
|
139 | 137 | -g --git use git extended diff format |
@@ -150,8 +148,6 help (mq present) | |||
|
150 | 148 | -B --ignore-blank-lines ignore changes whose lines are all blank |
|
151 | 149 | --mq operate on patch repository |
|
152 | 150 | |
|
153 | [+] marked option can be specified multiple times | |
|
154 | ||
|
155 | 151 | (some details hidden, use --verbose to show complete help) |
|
156 | 152 | |
|
157 | 153 | $ cd a |
@@ -534,7 +534,7 Make sure no one adds back a -b option: | |||
|
534 | 534 | |
|
535 | 535 | (use "hg help -e strip" to show help for the strip extension) |
|
536 | 536 | |
|
537 | options: | |
|
537 | options ([+] can be repeated): | |
|
538 | 538 | |
|
539 | 539 | -r --rev REV [+] strip specified revision (optional, can specify revisions |
|
540 | 540 | without this option) |
@@ -545,7 +545,5 Make sure no one adds back a -b option: | |||
|
545 | 545 | -B --bookmark VALUE remove revs only reachable from given bookmark |
|
546 | 546 | --mq operate on patch repository |
|
547 | 547 | |
|
548 | [+] marked option can be specified multiple times | |
|
549 | ||
|
550 | 548 | (use "hg strip -h" to show more help) |
|
551 | 549 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now