perf: fix perfcca to work with new casecollisionauditor interface
authorJoshua Redstone <joshua.redstone@fb.com>
Wed, 18 Jul 2012 07:51:20 -0700
changeset 17216 01c1ee4bd1dd
parent 17215 e2a0422f00f7
child 17217 1b2b727a885f
perf: fix perfcca to work with new casecollisionauditor interface A recent changeset, afd75476939e, modified the caescollisionauditor interface but did not update perf.py. This changeset remidies that.
contrib/perf.py
--- a/contrib/perf.py	Tue Jul 17 18:21:49 2012 +0200
+++ b/contrib/perf.py	Wed Jul 18 07:51:20 2012 -0700
@@ -177,7 +177,7 @@
     ui.popbuffer()
 
 def perfcca(ui, repo):
-    timer(lambda: scmutil.casecollisionauditor(ui, False, repo[None]))
+    timer(lambda: scmutil.casecollisionauditor(ui, False, repo.dirstate))
 
 def perffncacheload(ui, repo):
     from mercurial import scmutil, store