hgext/color.py
changeset 22763 7ebf91426f6a
parent 22711 60ac52a21512
child 22771 d6274291fac1
--- a/hgext/color.py	Sat Oct 04 17:22:22 2014 +0900
+++ b/hgext/color.py	Fri Oct 03 19:47:57 2014 -0400
@@ -407,8 +407,8 @@
                 *[self.label(str(a), label) for a in args], **opts)
 
     def showlabel(self, msg, label):
-        if label:
-            if msg and msg[-1] == '\n':
+        if label and msg:
+            if msg[-1] == '\n':
                 return "[%s|%s]\n" % (label, msg[:-1])
             else:
                 return "[%s|%s]" % (label, msg)