hgext/color.py
changeset 11302 e1dde7363601
parent 11207 1d714c1546b5
child 11310 ac873ecfc3c2
--- a/hgext/color.py	Mon Jun 07 18:35:54 2010 +0200
+++ b/hgext/color.py	Thu Jun 03 23:18:18 2010 -0500
@@ -108,7 +108,9 @@
            'status.ignored': 'black bold',
            'status.modified': 'blue bold',
            'status.removed': 'red bold',
-           'status.unknown': 'magenta bold underline'}
+           'status.unknown': 'magenta bold underline',
+           'ui.labeled': 'none',
+           'ui.plain': 'none'}
 
 
 def render_effects(text, effects):
@@ -142,6 +144,8 @@
 
 _buffers = None
 def style(msg, label):
+    if label in ('ui.plain', 'ui.labeled'):
+        return msg
     effects = []
     for l in label.split():
         s = _styles.get(l, '')