[PATCH] perf: fix perfcca to work with new casecollisionauditor interface

Joshua Redstone joshua.redstone at fb.com
Wed Jul 18 09:51:35 CDT 2012


# HG changeset patch
# User Joshua Redstone <joshua.redstone at fb.com>
# Date 1342623080 25200
# Node ID 0fa909ef850be70d53ae78af9863519aa883c3f6
# Parent  afd75476939e0a229816e6683607fbe5ab222c11
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.

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


More information about the Mercurial-devel mailing list