perfmanifest: fix cache invalidation
authorSiddharth Agarwal <sid0@fb.com>
Fri, 06 Sep 2013 13:20:07 -0700
changeset 19711 0a881ea4bed4
parent 19710 887ffa22fd0d
child 19712 79e5de2bfa8c
perfmanifest: fix cache invalidation The manifest cache is now stored in _mancache. The revlog cache is still stored in _cache.
contrib/perf.py
--- a/contrib/perf.py	Fri Sep 06 13:16:21 2013 -0700
+++ b/contrib/perf.py	Fri Sep 06 13:20:07 2013 -0700
@@ -175,9 +175,9 @@
 def perfmanifest(ui, repo):
     def d():
         t = repo.manifest.tip()
+        repo.manifest._mancache.clear()
+        repo.manifest._cache = None
         repo.manifest.read(t)
-        repo.manifest.mapcache = None
-        repo.manifest._cache = None
     timer(d)
 
 @command('perfchangeset')