##// END OF EJS Templates
manifest: move clearcaches to manifestlog...
Durham Goode -
r30370:10c92459 default
parent child Browse files
Show More
@@ -566,7 +566,7 def perfmanifest(ui, repo, rev, **opts):
566 566 ctx = scmutil.revsingle(repo, rev, rev)
567 567 t = ctx.manifestnode()
568 568 def d():
569 repo.manifest.clearcaches()
569 repo.manifestlog.clearcaches()
570 570 repo.manifestlog[t].read()
571 571 timer(d)
572 572 fm.end()
@@ -1322,6 +1322,10 class manifestlog(object):
1322 1322 mancache[node] = m
1323 1323 return m
1324 1324
1325 def clearcaches(self):
1326 self._dirmancache.clear()
1327 self._revlog.clearcaches()
1328
1325 1329 class memmanifestctx(object):
1326 1330 def __init__(self, repo):
1327 1331 self._repo = repo
@@ -1593,7 +1597,3 class manifest(manifestrevlog):
1593 1597 self._dirlogcache[dir] = manifest(self.opener, dir,
1594 1598 self._dirlogcache)
1595 1599 return self._dirlogcache[dir]
1596
1597 def clearcaches(self):
1598 super(manifest, self).clearcaches()
1599 self._mancache.clear()
General Comments 0
You need to be logged in to leave comments. Login now