hgext/color.py
changeset 10871 3f30190781a3
parent 10870 a4944b430417
child 10989 9fb09fc3ea3c
--- a/hgext/color.py	Tue Apr 06 08:49:19 2010 -0500
+++ b/hgext/color.py	Tue Apr 06 08:54:18 2010 -0500
@@ -180,6 +180,8 @@
         return orig(*[style(str(a), label) for a in args], **opts)
 
 def uisetup(ui):
+    if ui.plain():
+        return
     global mode
     mode = ui.config('color', 'mode', 'auto')
     if mode == 'auto':