hgext/color.py
changeset 31127 7fec37746417
parent 31122 45be7590301d
child 31130 268caf97c38f
--- a/hgext/color.py	Tue Feb 28 11:42:07 2017 +0100
+++ b/hgext/color.py	Sat Feb 25 19:44:23 2017 +0100
@@ -187,10 +187,11 @@
 
 def extsetup(ui):
     # change default color config
+    color._enabledbydefault = True
     for idx, entry in enumerate(commands.globalopts):
         if entry[1] == 'color':
-            patch = ('auto', entry[3].replace(' (EXPERIMENTAL)', ''))
-            new = entry[:2] + patch + entry[4:]
+            patch = (entry[3].replace(' (EXPERIMENTAL)', ''),)
+            new = entry[:3] + patch + entry[4:]
             commands.globalopts[idx] = new
             break