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