churn: make use of output labeling
authorBrodie Rao <brodie@bitheap.org>
Fri, 02 Apr 2010 15:22:10 -0500
changeset 10821 a6ac91c313af
parent 10820 da809085bc9f
child 10822 4c63f8e787b8
churn: make use of output labeling
hgext/churn.py
--- a/hgext/churn.py	Fri Apr 02 15:22:09 2010 -0500
+++ b/hgext/churn.py	Fri Apr 02 15:22:10 2010 -0500
@@ -153,8 +153,10 @@
         def format(name, (added, removed)):
             return "%s %15s %s%s\n" % (pad(name, maxname),
                                        '+%d/-%d' % (added, removed),
-                                       '+' * charnum(added),
-                                       '-' * charnum(removed))
+                                       ui.label('+' * charnum(added),
+                                                'diffstat.inserted'),
+                                       ui.label('-' * charnum(removed),
+                                                'diffstat.deleted'))
     else:
         width -= 6
         def format(name, count):