From 60cd869653f7ccbf3bf53daaf4da004cf2ba666a Mon Sep 17 00:00:00 2001 From: Matt Mackall Date: Sun, 12 Oct 2008 19:21:07 -0500 Subject: [PATCH] annotate: fix bug when annotating multiple files --- mercurial/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercurial/commands.py b/mercurial/commands.py index 072cd193c1..75c8a18817 100644 --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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):