changeset 31089:80f04ba7f4d1

color: set initial default value for 'colormode' to None This should not introduce any behavior changes when using the color extension. In practive, the colormode will be setup at early at run time to the proper value (from config and environment). We do this change as this gets us closer of a state were we can have all the mechanisms associated to color in core with the feature disabled by default.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 22 Dec 2016 06:18:45 +0100
parents 350d737e059d
children 2cf1e5207fdf
files hgext/color.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/color.py	Thu Dec 22 13:19:12 2016 +0100
+++ b/hgext/color.py	Thu Dec 22 06:18:45 2016 +0100
@@ -297,7 +297,7 @@
     return None
 
 class colorui(uimod.ui):
-    _colormode = 'ansi'
+    _colormode = None
     def write(self, *args, **opts):
         if self._colormode is None:
             return super(colorui, self).write(*args, **opts)