diff --git a/mercurial/revlog.py b/mercurial/revlog.py index 6620caf427ecf0b8b1dbc77aff9b498c15857a08_bWVyY3VyaWFsL3JldmxvZy5weQ==..8719a5b684199bcdfb8e5137573e91c9f5a8a62b_bWVyY3VyaWFsL3JldmxvZy5weQ== 100644 --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -668,7 +668,7 @@ if not self._chunkcache: self._chunkclear() # revnum -> (chain-length, sum-delta-length) - self._chaininfocache = {} + self._chaininfocache = util.lrucachedict(500) # revlog header -> revlog compressor self._decompressors = {} @@ -2550,7 +2550,7 @@ # then reset internal state in memory to forget those revisions self._revisioncache = None - self._chaininfocache = {} + self._chaininfocache = util.lrucachedict(500) self._chunkclear() del self.index[rev:-1]