Patchwork [2,of,3] perfmanifest: fix cache invalidation

login
register
mail settings
Submitter Siddharth Agarwal
Date Sept. 6, 2013, 9:01 p.m.
Message ID <9a82c7ceac3337c8aa7f.1378501278@dev1091.prn1.facebook.com>
Download mbox | patch
Permalink /patch/2396/
State Accepted
Commit 0a881ea4bed4adc474551746e773ac42d713cca2
Headers show

Comments

Siddharth Agarwal - Sept. 6, 2013, 9:01 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1378498807 25200
#      Fri Sep 06 13:20:07 2013 -0700
# Node ID 9a82c7ceac3337c8aa7f106d51419b2051e9165e
# Parent  07a887829c39ae6c929e296af52f03e159a768f1
perfmanifest: fix cache invalidation

The manifest cache is now stored in _mancache. The revlog cache is still stored
in _cache.

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -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')