Show More
@@ -668,7 +668,7 b' class revlog(object):' | |||||
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 | |||
@@ -2550,7 +2550,7 b' class revlog(object):' | |||||
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] |
General Comments 0
You need to be logged in to leave comments.
Login now