##// END OF EJS Templates
annotate: fix bug when annotating multiple files
Matt Mackall -
r7094:a4769dec default
parent child Browse files
Show More
@@ -123,8 +123,8 b' def annotate(ui, repo, *pats, **opts):'
123 for f in funcmap:
123 for f in funcmap:
124 l = [f(n) for n, dummy in lines]
124 l = [f(n) for n, dummy in lines]
125 if l:
125 if l:
126 m = max(map(len, l))
126 ml = max(map(len, l))
127 pieces.append(["%*s" % (m, x) for x in l])
127 pieces.append(["%*s" % (ml, x) for x in l])
128
128
129 if pieces:
129 if pieces:
130 for p, l in zip(zip(*pieces), lines):
130 for p, l in zip(zip(*pieces), lines):
General Comments 0
You need to be logged in to leave comments. Login now