comparison contrib/perf.py @ 17216:01c1ee4bd1dd

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.
author Joshua Redstone <joshua.redstone@fb.com>
date Wed, 18 Jul 2012 07:51:20 -0700
parents 91f3ac205816
children 5ab863922e0f
comparison
equal deleted inserted replaced
17215:e2a0422f00f7 17216:01c1ee4bd1dd
175 template='{date|shortdate} [{rev}:{node|short}]' 175 template='{date|shortdate} [{rev}:{node|short}]'
176 ' {author|person}: {desc|firstline}\n')) 176 ' {author|person}: {desc|firstline}\n'))
177 ui.popbuffer() 177 ui.popbuffer()
178 178
179 def perfcca(ui, repo): 179 def perfcca(ui, repo):
180 timer(lambda: scmutil.casecollisionauditor(ui, False, repo[None])) 180 timer(lambda: scmutil.casecollisionauditor(ui, False, repo.dirstate))
181 181
182 def perffncacheload(ui, repo): 182 def perffncacheload(ui, repo):
183 from mercurial import scmutil, store 183 from mercurial import scmutil, store
184 s = store.store(set(['store','fncache']), repo.path, scmutil.opener) 184 s = store.store(set(['store','fncache']), repo.path, scmutil.opener)
185 def d(): 185 def d():