mercurial/revlog.py
changeset 13268 fff12b3d953a
parent 13267 a483b3183ee8
child 13275 68da048b4c88
--- a/mercurial/revlog.py	Sun Jan 16 12:24:48 2011 +0100
+++ b/mercurial/revlog.py	Sun Jan 16 12:25:46 2011 +0100
@@ -272,9 +272,9 @@
             d = self._io.parseindex(i, self._inline)
         except (ValueError, IndexError):
             raise RevlogError(_("index %s is corrupted") % (self.indexfile))
-        self.index, n, self._chunkcache = d
-        if n:
-            self.nodemap = n
+        self.index, nodemap, self._chunkcache = d
+        if nodemap is not None:
+            self.nodemap = nodemap
             self.rev = self._revmap
         if not self._chunkcache:
             self._chunkclear()