# HG changeset patch # User Matt Mackall # Date 1223857267 18000 # Node ID a4769dec7773e119c812af7d4cb88fceda3a0f03 # Parent 16bafcebd3d1bf9f485f5eeafd57b138ab057369 annotate: fix bug when annotating multiple files diff -r 16bafcebd3d1 -r a4769dec7773 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):