Comments
Patch
@@ -18,14 +18,8 @@
from __future__ import absolute_import
-from mercurial import color
-
# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
testedwith = 'ships-with-hg-core'
-
-def extsetup(ui):
- # change default color config
- color._enabledbydefault = True
@@ -45,8 +45,6 @@
curses = None
_baseterminfoparams = {}
-_enabledbydefault = True
-
# start and stop parameters for effects
_effects = {
'none': 0,
@@ -185,10 +183,7 @@
def _modesetup(ui):
if ui.plain():
return None
- default = 'never'
- if _enabledbydefault:
- default = 'auto'
- config = ui.config('ui', 'color', default)
+ config = ui.config('ui', 'color', 'auto')
if config == 'debug':
return 'debug'