Mercurial > public > mercurial-scm > hg-stable
diff hgext/churn.py @ 10821:a6ac91c313af
churn: make use of output labeling
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Fri, 02 Apr 2010 15:22:10 -0500 |
parents | b2b71c304de0 |
children | 13a1b2fb7ef2 |
line wrap: on
line diff
--- 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):