mercurial/revlog.py
changeset 13268 fff12b3d953a
parent 13267 a483b3183ee8
child 13275 68da048b4c88
equal deleted inserted replaced
13267:a483b3183ee8 13268:fff12b3d953a
   270             self._io = revlogoldio()
   270             self._io = revlogoldio()
   271         try:
   271         try:
   272             d = self._io.parseindex(i, self._inline)
   272             d = self._io.parseindex(i, self._inline)
   273         except (ValueError, IndexError):
   273         except (ValueError, IndexError):
   274             raise RevlogError(_("index %s is corrupted") % (self.indexfile))
   274             raise RevlogError(_("index %s is corrupted") % (self.indexfile))
   275         self.index, n, self._chunkcache = d
   275         self.index, nodemap, self._chunkcache = d
   276         if n:
   276         if nodemap is not None:
   277             self.nodemap = n
   277             self.nodemap = nodemap
   278             self.rev = self._revmap
   278             self.rev = self._revmap
   279         if not self._chunkcache:
   279         if not self._chunkcache:
   280             self._chunkclear()
   280             self._chunkclear()
   281 
   281 
   282     @util.propertycache
   282     @util.propertycache