# HG changeset patch # User Benoit Boissinot # Date 1295177088 -3600 # Node ID a483b3183ee851a243391ce6544241f85256b560 # Parent a5db81b5d3e9aeb56f966b268b6089ccdbafe2a2 revlog: if the nodemap is set, use the fast version of revlog.rev() diff -r a5db81b5d3e9 -r a483b3183ee8 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()