# HG changeset patch # User Gregory Szorc # Date 2015-12-21 01:57:44 # Node ID fbe292b591ec162de2807392377100edf58fc3d1 # Parent f888676a23d09d63d81c45ce2fcc1050980b3a8d 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. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -273,8 +273,7 @@ def perfmanifest(ui, repo, rev, **opts): 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()