revlog: if the nodemap is set, use the fast version of revlog.rev()
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 16 Jan 2011 12:24:48 +0100
changeset 13267 a483b3183ee8
parent 13266 a5db81b5d3e9
child 13268 fff12b3d953a
revlog: if the nodemap is set, use the fast version of revlog.rev()
mercurial/revlog.py
--- a/mercurial/revlog.py	Sat Jan 15 15:06:53 2011 +0100
+++ b/mercurial/revlog.py	Sun Jan 16 12:24:48 2011 +0100
@@ -275,6 +275,7 @@
         self.index, n, self._chunkcache = d
         if n:
             self.nodemap = n
+            self.rev = self._revmap
         if not self._chunkcache:
             self._chunkclear()