annotate: fix bug when annotating multiple files

This commit is contained in:
Matt Mackall 2008-10-12 19:21:07 -05:00
parent 1c5fcf7d0e
commit 60cd869653

View File

@ -123,8 +123,8 @@ def annotate(ui, repo, *pats, **opts):
for f in funcmap:
l = [f(n) for n, dummy in lines]
if l:
m = max(map(len, l))
pieces.append(["%*s" % (m, x) for x in l])
ml = max(map(len, l))
pieces.append(["%*s" % (ml, x) for x in l])
if pieces:
for p, l in zip(zip(*pieces), lines):