changeset 10871:3f30190781a3

color: respect HGPLAIN
author Steve Borho <steve@borho.org>
date Tue, 06 Apr 2010 08:54:18 -0500
parents a4944b430417
children bbf496db0766 24ed7a541f23
files hgext/color.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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':