Show More
@@ -1287,7 +1287,7 b' class manifestlog(object):' | |||||
1287 | self._dirmancache = {} |
|
1287 | self._dirmancache = {} | |
1288 | self._dirmancache[''] = util.lrucachedict(cachesize) |
|
1288 | self._dirmancache[''] = util.lrucachedict(cachesize) | |
1289 |
|
1289 | |||
1290 | self.cachesize = cachesize |
|
1290 | self._cachesize = cachesize | |
1291 |
|
1291 | |||
1292 | def __getitem__(self, node): |
|
1292 | def __getitem__(self, node): | |
1293 | """Retrieves the manifest instance for the given node. Throws a |
|
1293 | """Retrieves the manifest instance for the given node. Throws a | |
@@ -1333,7 +1333,7 b' class manifestlog(object):' | |||||
1333 | if node != revlog.nullid: |
|
1333 | if node != revlog.nullid: | |
1334 | mancache = self._dirmancache.get(dir) |
|
1334 | mancache = self._dirmancache.get(dir) | |
1335 | if not mancache: |
|
1335 | if not mancache: | |
1336 | mancache = util.lrucachedict(self.cachesize) |
|
1336 | mancache = util.lrucachedict(self._cachesize) | |
1337 | self._dirmancache[dir] = mancache |
|
1337 | self._dirmancache[dir] = mancache | |
1338 | mancache[node] = m |
|
1338 | mancache[node] = m | |
1339 | return m |
|
1339 | return m |
General Comments 0
You need to be logged in to leave comments.
Login now