From patchwork Sun Jul 1 18:07:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3868: manifest: make cachesize a private attribute From: phabricator X-Patchwork-Id: 32552 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 1 Jul 2018 18:07:38 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG561a450c7b64: manifest: make cachesize a private attribute (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3868?vs=9382&id=9394 REVISION DETAIL https://phab.mercurial-scm.org/D3868 AFFECTED FILES mercurial/manifest.py CHANGE DETAILS To: indygreg, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -1287,7 +1287,7 @@ self._dirmancache = {} self._dirmancache[''] = util.lrucachedict(cachesize) - self.cachesize = cachesize + self._cachesize = cachesize def __getitem__(self, node): """Retrieves the manifest instance for the given node. Throws a @@ -1333,7 +1333,7 @@ if node != revlog.nullid: mancache = self._dirmancache.get(dir) if not mancache: - mancache = util.lrucachedict(self.cachesize) + mancache = util.lrucachedict(self._cachesize) self._dirmancache[dir] = mancache mancache[node] = m return m