# HG changeset patch # User Matt Mackall # Date 2012-04-08 17:38:24 # Node ID 84ba30e8c790c818d2f9a990c38f021e71c4504e # Parent 5cbfbb838198c3d6df0a51eb0d83e8210d61ec85 cmdutil: use context instead of lookup diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1150,7 +1150,7 @@ def walkchangerevs(repo, match, opts, pr # it might be worthwhile to do this in the iterator if the rev range # is descending and the prune args are all within that range for rev in opts.get('prune', ()): - rev = repo.changelog.rev(repo.lookup(rev)) + rev = repo[rev].rev() ff = followfilter() stop = min(revs[0], revs[-1]) for x in xrange(rev, stop - 1, -1):