mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
annotate: fix bug when annotating multiple files
This commit is contained in:
parent
1c5fcf7d0e
commit
60cd869653
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user