comparison mercurial/commands.py @ 31121:8346b2f09e79

color: add the definition of '--color' in core If we want to be able to move the initialisation in core, we need core to be aware of that '--color' flag at all time. So we now have the definition in core. That flag is currently unprocessed without the extensions (will be fixed soon). In addition the default value for this flag in core is 'never'. Enabling the extensions change that default value to 'auto'.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 21 Feb 2017 18:09:21 +0100
parents be74ce1b930f
children 7fec37746417
comparison
equal deleted inserted replaced
31120:c1997c5d1ae3 31121:8346b2f09e79
75 _('change working directory'), _('DIR')), 75 _('change working directory'), _('DIR')),
76 ('y', 'noninteractive', None, 76 ('y', 'noninteractive', None,
77 _('do not prompt, automatically pick the first choice for all prompts')), 77 _('do not prompt, automatically pick the first choice for all prompts')),
78 ('q', 'quiet', None, _('suppress output')), 78 ('q', 'quiet', None, _('suppress output')),
79 ('v', 'verbose', None, _('enable additional output')), 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 ('', 'config', [], 86 ('', 'config', [],
81 _('set/override config option (use \'section.name=value\')'), 87 _('set/override config option (use \'section.name=value\')'),
82 _('CONFIG')), 88 _('CONFIG')),
83 ('', 'debug', None, _('enable debugging output')), 89 ('', 'debug', None, _('enable debugging output')),
84 ('', 'debugger', None, _('start debugger')), 90 ('', 'debugger', None, _('start debugger')),