[PATCH] perf: fix perfcca to work with new casecollisionauditor interface
Joshua Redstone
joshua.redstone at fb.com
Wed Jul 18 09:53:12 CDT 2012
I haven't been able to figure out how to verify this change. I was trying
to use debugshell but then couldn't figure out how to
import the perf.py module. Any suggestions?
Josh
On 7/18/12 10:51 AM, "Joshua Redstone" <joshua.redstone at fb.com> wrote:
># 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