##// END OF EJS Templates
manifest: move clearcaches to manifestlog...
Durham Goode -
r30370:10c92459 default
parent child Browse files
Show More
@@ -566,7 +566,7 b' def perfmanifest(ui, repo, rev, **opts):'
566 ctx = scmutil.revsingle(repo, rev, rev)
566 ctx = scmutil.revsingle(repo, rev, rev)
567 t = ctx.manifestnode()
567 t = ctx.manifestnode()
568 def d():
568 def d():
569 repo.manifest.clearcaches()
569 repo.manifestlog.clearcaches()
570 repo.manifestlog[t].read()
570 repo.manifestlog[t].read()
571 timer(d)
571 timer(d)
572 fm.end()
572 fm.end()
@@ -1322,6 +1322,10 b' class manifestlog(object):'
1322 mancache[node] = m
1322 mancache[node] = m
1323 return m
1323 return m
1324
1324
1325 def clearcaches(self):
1326 self._dirmancache.clear()
1327 self._revlog.clearcaches()
1328
1325 class memmanifestctx(object):
1329 class memmanifestctx(object):
1326 def __init__(self, repo):
1330 def __init__(self, repo):
1327 self._repo = repo
1331 self._repo = repo
@@ -1593,7 +1597,3 b' class manifest(manifestrevlog):'
1593 self._dirlogcache[dir] = manifest(self.opener, dir,
1597 self._dirlogcache[dir] = manifest(self.opener, dir,
1594 self._dirlogcache)
1598 self._dirlogcache)
1595 return self._dirlogcache[dir]
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