perf: fix ordering of invalidate in perfindex
authorMatt Mackall <mpm@selenic.com>
Wed, 12 Jan 2011 11:34:42 -0600
changeset 13260 911a4499adb0
parent 13259 3b616dfa4b17
child 13261 20a54bdf2328
perf: fix ordering of invalidate in perfindex
contrib/perf.py
--- a/contrib/perf.py	Tue Jan 11 21:52:03 2011 -0600
+++ b/contrib/perf.py	Wed Jan 12 11:34:42 2011 -0600
@@ -84,8 +84,8 @@
     mercurial.revlog._prereadsize = 2**24 # disable old lazy parser
     n = repo["tip"].node()
     def d():
+        repo.invalidate()
         repo[n]
-        repo.invalidate()
     timer(d)
 
 def perfstartup(ui, repo):