comparison hgext/churn.py @ 11501:deb5d02ae91c

churn: remove tuple parameter unpacking (deprecated in py3k)
author Renato Cunha <renatoc@gmail.com>
date Thu, 01 Jul 2010 19:27:03 -0300
parents 40c06bbf58be
children fddacca3202e
comparison
equal deleted inserted replaced
11500:b782a7eb9037 11501:deb5d02ae91c
147 ui.debug("assuming %i character terminal\n" % ttywidth) 147 ui.debug("assuming %i character terminal\n" % ttywidth)
148 width = ttywidth - maxname - 2 - 2 - 2 148 width = ttywidth - maxname - 2 - 2 - 2
149 149
150 if opts.get('diffstat'): 150 if opts.get('diffstat'):
151 width -= 15 151 width -= 15
152 def format(name, (added, removed)): 152 def format(name, diffstat):
153 added, removed = diffstat
153 return "%s %15s %s%s\n" % (pad(name, maxname), 154 return "%s %15s %s%s\n" % (pad(name, maxname),
154 '+%d/-%d' % (added, removed), 155 '+%d/-%d' % (added, removed),
155 ui.label('+' * charnum(added), 156 ui.label('+' * charnum(added),
156 'diffstat.inserted'), 157 'diffstat.inserted'),
157 ui.label('-' * charnum(removed), 158 ui.label('-' * charnum(removed),