equal
deleted
inserted
replaced
666 ) |
666 ) |
667 self.index, self._chunkcache = d |
667 self.index, self._chunkcache = d |
668 if not self._chunkcache: |
668 if not self._chunkcache: |
669 self._chunkclear() |
669 self._chunkclear() |
670 # revnum -> (chain-length, sum-delta-length) |
670 # revnum -> (chain-length, sum-delta-length) |
671 self._chaininfocache = {} |
671 self._chaininfocache = util.lrucachedict(500) |
672 # revlog header -> revlog compressor |
672 # revlog header -> revlog compressor |
673 self._decompressors = {} |
673 self._decompressors = {} |
674 |
674 |
675 @util.propertycache |
675 @util.propertycache |
676 def _compressor(self): |
676 def _compressor(self): |
2548 |
2548 |
2549 transaction.add(self.indexfile, end) |
2549 transaction.add(self.indexfile, end) |
2550 |
2550 |
2551 # then reset internal state in memory to forget those revisions |
2551 # then reset internal state in memory to forget those revisions |
2552 self._revisioncache = None |
2552 self._revisioncache = None |
2553 self._chaininfocache = {} |
2553 self._chaininfocache = util.lrucachedict(500) |
2554 self._chunkclear() |
2554 self._chunkclear() |
2555 |
2555 |
2556 del self.index[rev:-1] |
2556 del self.index[rev:-1] |
2557 |
2557 |
2558 def checksize(self): |
2558 def checksize(self): |