# HG changeset patch # User Matt Mackall # Date 1333906703 18000 # Node ID 5cbfbb838198c3d6df0a51eb0d83e8210d61ec85 # Parent c463f46fe05073c34f9c1a3dc712034479ce4fc4 scmutil: use context instead of lookup 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: