annotate: fix bug when annotating multiple files
authorMatt Mackall <mpm@selenic.com>
Sun, 12 Oct 2008 19:21:07 -0500
changeset 7094 a4769dec7773
parent 7093 16bafcebd3d1
child 7095 0ed11838bd1a
annotate: fix bug when annotating multiple files
mercurial/commands.py
--- a/mercurial/commands.py	Sun Oct 12 15:21:08 2008 -0500
+++ b/mercurial/commands.py	Sun Oct 12 19:21:07 2008 -0500
@@ -123,8 +123,8 @@
         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):