configitems: register the 'ui.color' config
authorBoris Feld <boris.feld@octobus.net>
Sat, 15 Jul 2017 14:14:53 +0200
changeset 33522 62b29ca72d1a
parent 33521 de1cb83728f8
child 33523 11025c4f1016
configitems: register the 'ui.color' config
mercurial/color.py
mercurial/configitems.py
--- 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,
 )