mercurial/revlog.py
changeset 19776 a9e92b11a3f2
parent 19717 6031fe568cd0
parent 19764 e92650e39f1c
child 20073 eeba4eaf0716
--- a/mercurial/revlog.py	Fri Sep 20 15:26:30 2013 -0700
+++ b/mercurial/revlog.py	Mon Sep 23 11:37:06 2013 -0700
@@ -200,7 +200,7 @@
         self.datafile = indexfile[:-2] + ".d"
         self.opener = opener
         self._cache = None
-        self._basecache = (0, 0)
+        self._basecache = None
         self._chunkcache = (0, '')
         self.index = []
         self._pcache = {}
@@ -1131,6 +1131,8 @@
         offset = self.end(prev)
         flags = 0
         d = None
+        if self._basecache is None:
+            self._basecache = (prev, self.chainbase(prev))
         basecache = self._basecache
         p1r, p2r = self.rev(p1), self.rev(p2)