changeset 27467:fbe292b591ec

perf: call clearcaches() in perfmanifest The old code only partially cleared the caches. Now that we have a comprehensive method for wiping all caches, let's call it. This appears to introduce a marginal regression in `hg perfmanifest` on mozilla-central. This is good because the new result is more accurate since caches aren't being used.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Dec 2015 17:57:44 -0800
parents f888676a23d0
children 93ac15f03331
files contrib/perf.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Sun Dec 20 19:31:46 2015 -0800
+++ b/contrib/perf.py	Sun Dec 20 17:57:44 2015 -0800
@@ -273,8 +273,7 @@
     ctx = scmutil.revsingle(repo, rev, rev)
     t = ctx.manifestnode()
     def d():
-        repo.manifest._mancache.clear()
-        repo.manifest._cache = None
+        repo.manifest.clearcaches()
         repo.manifest.read(t)
     timer(d)
     fm.end()