mercurial/revlog.py
changeset 9679 a1943c2a4661
parent 9437 1c4e4004f3a6
child 9991 a7d11deb47dd
child 10047 27267b1f68b4
equal deleted inserted replaced
9678:e2b1de5fee04 9679:a1943c2a4661
   464         if self.version == REVLOGV0:
   464         if self.version == REVLOGV0:
   465             self._io = revlogoldio()
   465             self._io = revlogoldio()
   466         if i:
   466         if i:
   467             try:
   467             try:
   468                 d = self._io.parseindex(f, i, self._inline)
   468                 d = self._io.parseindex(f, i, self._inline)
   469             except (ValueError, IndexError), e:
   469             except (ValueError, IndexError):
   470                 raise RevlogError(_("index %s is corrupted") % (self.indexfile))
   470                 raise RevlogError(_("index %s is corrupted") % (self.indexfile))
   471             self.index, self.nodemap, self._chunkcache = d
   471             self.index, self.nodemap, self._chunkcache = d
   472             if not self._chunkcache:
   472             if not self._chunkcache:
   473                 self._chunkclear()
   473                 self._chunkclear()
   474 
   474