contrib/perf.py
changeset 17216 01c1ee4bd1dd
parent 16866 91f3ac205816
child 17553 5ab863922e0f
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():