scmutil: use context instead of lookup
authorMatt Mackall <mpm@selenic.com>
Sun, 08 Apr 2012 12:38:23 -0500
changeset 16379 5cbfbb838198
parent 16378 c463f46fe050
child 16380 84ba30e8c790
scmutil: use context instead of lookup
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: