changeset 13267:a483b3183ee8

revlog: if the nodemap is set, use the fast version of revlog.rev()
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 16 Jan 2011 12:24:48 +0100
parents a5db81b5d3e9
children fff12b3d953a
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()