# HG changeset patch # User Matt Mackall # Date 1152213324 18000 # Node ID 82e3b2966862b0ad28b0d49ece7b2a6312242ee6 # Parent 2748253b49c28a9df0395cbe30baa8b07aea52b9 Fix annotate breakage diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -765,7 +765,7 @@ def annotate(ui, repo, *pats, **opts): ctx = repo.changectx(opts['rev'] or repo.dirstate.parents()[0]) - for src, abs, rel, exact in walk(repo, pats, opts, node=node): + for src, abs, rel, exact in walk(repo, pats, opts, node=ctx.node()): fctx = ctx.filectx(abs) if not opts['text'] and util.binary(fctx.data()): ui.write(_("%s: binary file\n") % ((pats and rel) or abs))