##// END OF EJS Templates
color: add the definition of '--color' in core...
Pierre-Yves David -
r31104:8346b2f0 default
parent child Browse files
Show More
@@ -198,12 +198,13 b' def uisetup(ui):'
198 198 extensions.wrapfunction(dispatch, '_runcommand', colorcmd)
199 199
200 200 def extsetup(ui):
201 commands.globalopts.append(
202 ('', 'color', 'auto',
203 # i18n: 'always', 'auto', 'never', and 'debug' are keywords
204 # and should not be translated
205 _("when to colorize (boolean, always, auto, never, or debug)"),
206 _('TYPE')))
201 # change default color config
202 for idx, entry in enumerate(commands.globalopts):
203 if entry[1] == 'color':
204 patch = ('auto', entry[3].replace(' (EXPERIMENTAL)', ''))
205 new = entry[:2] + patch + entry[4:]
206 commands.globalopts[idx] = new
207 break
207 208
208 209 @command('debugcolor',
209 210 [('', 'style', None, _('show all configured styles'))],
@@ -77,6 +77,12 b' globalopts = ['
77 77 _('do not prompt, automatically pick the first choice for all prompts')),
78 78 ('q', 'quiet', None, _('suppress output')),
79 79 ('v', 'verbose', None, _('enable additional output')),
80 ('', 'color', 'never',
81 # i18n: 'always', 'auto', 'never', and 'debug' are keywords
82 # and should not be translated
83 _("when to colorize (boolean, always, auto, never, or debug)"
84 " (EXPERIMENTAL)"),
85 _('TYPE')),
80 86 ('', 'config', [],
81 87 _('set/override config option (use \'section.name=value\')'),
82 88 _('CONFIG')),
@@ -129,6 +129,7 b' Show the alias of a debug command if the'
129 129
130 130 Show the global options
131 131 $ hg debugcomplete --options | sort
132 --color
132 133 --config
133 134 --cwd
134 135 --debug
@@ -158,6 +159,7 b' Show the options for the "serve" command'
158 159 --address
159 160 --certificate
160 161 --cmdserver
162 --color
161 163 --config
162 164 --cwd
163 165 --daemon
@@ -532,6 +532,8 b' hide outer repo'
532 532 all prompts
533 533 -q --quiet suppress output
534 534 -v --verbose enable additional output
535 --color TYPE when to colorize (boolean, always, auto, never, or
536 debug) (EXPERIMENTAL) (default: never)
535 537 --config CONFIG [+] set/override config option (use 'section.name=value')
536 538 --debug enable debugging output
537 539 --debugger start debugger
@@ -569,6 +571,8 b' hide outer repo'
569 571 all prompts
570 572 -q --quiet suppress output
571 573 -v --verbose enable additional output
574 --color TYPE when to colorize (boolean, always, auto, never, or
575 debug) (EXPERIMENTAL) (default: never)
572 576 --config CONFIG [+] set/override config option (use 'section.name=value')
573 577 --debug enable debugging output
574 578 --debugger start debugger
@@ -849,6 +853,8 b' extension help itself'
849 853 all prompts
850 854 -q --quiet suppress output
851 855 -v --verbose enable additional output
856 --color TYPE when to colorize (boolean, always, auto, never, or
857 debug) (EXPERIMENTAL) (default: never)
852 858 --config CONFIG [+] set/override config option (use 'section.name=value')
853 859 --debug enable debugging output
854 860 --debugger start debugger
@@ -884,6 +890,8 b" Make sure that single '-v' option shows "
884 890 all prompts
885 891 -q --quiet suppress output
886 892 -v --verbose enable additional output
893 --color TYPE when to colorize (boolean, always, auto, never, or
894 debug) (EXPERIMENTAL) (default: never)
887 895 --config CONFIG [+] set/override config option (use 'section.name=value')
888 896 --debug enable debugging output
889 897 --debugger start debugger
@@ -957,6 +965,8 b" help options '-v' and '-v -e' should be "
957 965 all prompts
958 966 -q --quiet suppress output
959 967 -v --verbose enable additional output
968 --color TYPE when to colorize (boolean, always, auto, never, or
969 debug) (EXPERIMENTAL) (default: never)
960 970 --config CONFIG [+] set/override config option (use 'section.name=value')
961 971 --debug enable debugging output
962 972 --debugger start debugger
@@ -991,6 +1001,8 b" help options '-v' and '-v -e' should be "
991 1001 all prompts
992 1002 -q --quiet suppress output
993 1003 -v --verbose enable additional output
1004 --color TYPE when to colorize (boolean, always, auto, never, or
1005 debug) (EXPERIMENTAL) (default: never)
994 1006 --config CONFIG [+] set/override config option (use 'section.name=value')
995 1007 --debug enable debugging output
996 1008 --debugger start debugger
@@ -5,5 +5,5 b' moving pager to core. These two warnings'
5 5 until the localization is corrected.
6 6 $ $TESTDIR/check-gendoc ro
7 7 checking for parse errors
8 gendoc.txt:55: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.
9 gendoc.txt:55: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.
8 gendoc.txt:58: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.
9 gendoc.txt:58: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.
@@ -316,6 +316,8 b' Test short command list with verbose opt'
316 316 all prompts
317 317 -q --quiet suppress output
318 318 -v --verbose enable additional output
319 --color TYPE when to colorize (boolean, always, auto, never, or
320 debug) (EXPERIMENTAL) (default: never)
319 321 --config CONFIG [+] set/override config option (use 'section.name=value')
320 322 --debug enable debugging output
321 323 --debugger start debugger
@@ -414,6 +416,8 b' Verbose help for add'
414 416 all prompts
415 417 -q --quiet suppress output
416 418 -v --verbose enable additional output
419 --color TYPE when to colorize (boolean, always, auto, never, or
420 debug) (EXPERIMENTAL) (default: never)
417 421 --config CONFIG [+] set/override config option (use 'section.name=value')
418 422 --debug enable debugging output
419 423 --debugger start debugger
@@ -2516,6 +2520,9 b' Dish up an empty repo; serve it cold.'
2516 2520 <td>--verbose</td>
2517 2521 <td>enable additional output</td></tr>
2518 2522 <tr><td></td>
2523 <td>--color TYPE</td>
2524 <td>when to colorize (boolean, always, auto, never, or debug) (EXPERIMENTAL) (default: never)</td></tr>
2525 <tr><td></td>
2519 2526 <td>--config CONFIG [+]</td>
2520 2527 <td>set/override config option (use 'section.name=value')</td></tr>
2521 2528 <tr><td></td>
@@ -2714,6 +2721,9 b' Dish up an empty repo; serve it cold.'
2714 2721 <td>--verbose</td>
2715 2722 <td>enable additional output</td></tr>
2716 2723 <tr><td></td>
2724 <td>--color TYPE</td>
2725 <td>when to colorize (boolean, always, auto, never, or debug) (EXPERIMENTAL) (default: never)</td></tr>
2726 <tr><td></td>
2717 2727 <td>--config CONFIG [+]</td>
2718 2728 <td>set/override config option (use 'section.name=value')</td></tr>
2719 2729 <tr><td></td>
General Comments 0
You need to be logged in to leave comments. Login now