--- a/mercurial/color.py Sat Jul 15 14:14:46 2017 +0200
+++ b/mercurial/color.py Sat Jul 15 14:14:53 2017 +0200
@@ -183,7 +183,7 @@
def _modesetup(ui):
if ui.plain():
return None
- config = ui.config('ui', 'color', 'auto')
+ config = ui.config('ui', 'color')
if config == 'debug':
return 'debug'
--- a/mercurial/configitems.py Sat Jul 15 14:14:46 2017 +0200
+++ b/mercurial/configitems.py Sat Jul 15 14:14:53 2017 +0200
@@ -430,6 +430,9 @@
coreconfigitem('ui', 'clonebundles',
default=True,
)
+coreconfigitem('ui', 'color',
+ default='auto',
+)
coreconfigitem('ui', 'commitsubrepos',
default=False,
)