mercurial/scmutil.py
changeset 16379 5cbfbb838198
parent 16208 85db991780b7
child 16383 f5dd179bfa4a
--- 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: