diff -r c463f46fe050 -r 5cbfbb838198 mercurial/scmutil.py --- a/mercurial/scmutil.py Sun Apr 08 12:38:10 2012 -0500 +++ b/mercurial/scmutil.py Sun Apr 08 12:38:23 2012 -0500 @@ -523,7 +523,7 @@ def revfix(repo, val, defval): if not val and val != 0 and defval is not None: return defval - return repo.changelog.rev(repo.lookup(val)) + return repo[val].rev() seen, l = set(), [] for spec in revs: