diff hgext/churn.py @ 11311:fcd06ecd4cb7

Merge backout
author Steve Borho <steve@borho.org>
date Tue, 08 Jun 2010 15:52:56 -0500
parents ac873ecfc3c2
children 40c06bbf58be
line wrap: on
line diff
--- a/hgext/churn.py	Tue Jun 08 21:09:41 2010 +0200
+++ b/hgext/churn.py	Tue Jun 08 15:52:56 2010 -0500
@@ -150,10 +150,8 @@
     if opts.get('diffstat'):
         width -= 15
         def format(name, (added, removed)):
-            return "%s %15s %s%s\n" % (ui.label(pad(name, maxname),
-                                                'ui.plain'),
-                                       ui.label('+%d/-%d' % (added, removed),
-                                                'ui.plain'),
+            return "%s %15s %s%s\n" % (pad(name, maxname),
+                                       '+%d/-%d' % (added, removed),
                                        ui.label('+' * charnum(added),
                                                 'diffstat.inserted'),
                                        ui.label('-' * charnum(removed),
@@ -161,14 +159,14 @@
     else:
         width -= 6
         def format(name, count):
-            return ui.label("%s %6d %s\n" % (pad(name, maxname), sum(count),
-                            '*' * charnum(sum(count))), 'ui.plain')
+            return "%s %6d %s\n" % (pad(name, maxname), sum(count),
+                                    '*' * charnum(sum(count)))
 
     def charnum(count):
         return int(round(count * width / maxcount))
 
     for name, count in rate:
-        ui.write(format(name, count), label='ui.labeled')
+        ui.write(format(name, count))
 
 
 cmdtable = {