Patchwork D3868: manifest: make cachesize a private attribute

login
register
mail settings
Submitter phabricator
Date July 1, 2018, 6:07 p.m.
Message ID <a336a6a2d09eccc11f8934094939e8b6@localhost.localdomain>
Download mbox | patch
Permalink /patch/32552/
State Not Applicable
Headers show

Comments

phabricator - July 1, 2018, 6:07 p.m.
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

Patch

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