Show More
@@ -33,14 +33,17 b' from .hgweb import (' | |||||
33 | webcommands, |
|
33 | webcommands, | |
34 | ) |
|
34 | ) | |
35 |
|
35 | |||
36 | _exclkeywords = [ |
|
36 | _exclkeywords = set([ | |
|
37 | "(ADVANCED)", | |||
37 | "(DEPRECATED)", |
|
38 | "(DEPRECATED)", | |
38 | "(EXPERIMENTAL)", |
|
39 | "(EXPERIMENTAL)", | |
|
40 | # i18n: "(ADVANCED)" is a keyword, must be translated consistently | |||
|
41 | _("(ADVANCED)"), | |||
39 | # i18n: "(DEPRECATED)" is a keyword, must be translated consistently |
|
42 | # i18n: "(DEPRECATED)" is a keyword, must be translated consistently | |
40 | _("(DEPRECATED)"), |
|
43 | _("(DEPRECATED)"), | |
41 | # i18n: "(EXPERIMENTAL)" is a keyword, must be translated consistently |
|
44 | # i18n: "(EXPERIMENTAL)" is a keyword, must be translated consistently | |
42 | _("(EXPERIMENTAL)"), |
|
45 | _("(EXPERIMENTAL)"), | |
43 | ] |
|
46 | ]) | |
44 |
|
47 | |||
45 | def listexts(header, exts, indent=1, showdeprecated=False): |
|
48 | def listexts(header, exts, indent=1, showdeprecated=False): | |
46 | '''return a text listing of the given extensions''' |
|
49 | '''return a text listing of the given extensions''' |
@@ -683,6 +683,7 b' this is a section and erroring out weird' | |||||
683 | > ('', 'newline', '', 'line1\nline2')], |
|
683 | > ('', 'newline', '', 'line1\nline2')], | |
684 | > 'hg nohelp', |
|
684 | > 'hg nohelp', | |
685 | > norepo=True) |
|
685 | > norepo=True) | |
|
686 | > @command('debugoptADV', [('', 'aopt', None, 'option is (ADVANCED)')]) | |||
686 | > @command('debugoptDEP', [('', 'dopt', None, 'option is (DEPRECATED)')]) |
|
687 | > @command('debugoptDEP', [('', 'dopt', None, 'option is (DEPRECATED)')]) | |
687 | > @command('debugoptEXP', [('', 'eopt', None, 'option is (EXPERIMENTAL)')]) |
|
688 | > @command('debugoptEXP', [('', 'eopt', None, 'option is (EXPERIMENTAL)')]) | |
688 | > def nohelp(ui, *args, **kwargs): |
|
689 | > def nohelp(ui, *args, **kwargs): | |
@@ -895,6 +896,7 b' Test list of internal help commands' | |||||
895 | complete "names" - tags, open branch names, bookmark names |
|
896 | complete "names" - tags, open branch names, bookmark names | |
896 | debugobsolete |
|
897 | debugobsolete | |
897 | create arbitrary obsolete marker |
|
898 | create arbitrary obsolete marker | |
|
899 | debugoptADV (no help text available) | |||
898 | debugoptDEP (no help text available) |
|
900 | debugoptDEP (no help text available) | |
899 | debugoptEXP (no help text available) |
|
901 | debugoptEXP (no help text available) | |
900 | debugpathcomplete |
|
902 | debugpathcomplete | |
@@ -1108,7 +1110,15 b' Test list of commands with command with ' | |||||
1108 | (use 'hg help -v helpext' to show built-in aliases and global options) |
|
1110 | (use 'hg help -v helpext' to show built-in aliases and global options) | |
1109 |
|
1111 | |||
1110 |
|
1112 | |||
1111 | test deprecated and experimental options are hidden in command help |
|
1113 | test advanced, deprecated and experimental options are hidden in command help | |
|
1114 | $ hg help debugoptADV | |||
|
1115 | hg debugoptADV | |||
|
1116 | ||||
|
1117 | (no help text available) | |||
|
1118 | ||||
|
1119 | options: | |||
|
1120 | ||||
|
1121 | (some details hidden, use --verbose to show complete help) | |||
1112 | $ hg help debugoptDEP |
|
1122 | $ hg help debugoptDEP | |
1113 | hg debugoptDEP |
|
1123 | hg debugoptDEP | |
1114 |
|
1124 | |||
@@ -1127,7 +1137,9 b' test deprecated and experimental options' | |||||
1127 |
|
1137 | |||
1128 | (some details hidden, use --verbose to show complete help) |
|
1138 | (some details hidden, use --verbose to show complete help) | |
1129 |
|
1139 | |||
1130 |
test deprecated and experimental options |
|
1140 | test advanced, deprecated and experimental options are shown with -v | |
|
1141 | $ hg help -v debugoptADV | grep aopt | |||
|
1142 | --aopt option is (ADVANCED) | |||
1131 | $ hg help -v debugoptDEP | grep dopt |
|
1143 | $ hg help -v debugoptDEP | grep dopt | |
1132 | --dopt option is (DEPRECATED) |
|
1144 | --dopt option is (DEPRECATED) | |
1133 | $ hg help -v debugoptEXP | grep eopt |
|
1145 | $ hg help -v debugoptEXP | grep eopt |
General Comments 0
You need to be logged in to leave comments.
Login now