contrib/perf.py
changeset 41652 6a447a3d1bd0
parent 41615 328ca3b9e545
child 42015 dbca2e5563c3
equal deleted inserted replaced
41651:b2df5dc3ebfb 41652:6a447a3d1bd0
   517     try:
   517     try:
   518         oldquiet = repo.ui.quiet
   518         oldquiet = repo.ui.quiet
   519         repo.ui.quiet = True
   519         repo.ui.quiet = True
   520         matcher = scmutil.match(repo[None])
   520         matcher = scmutil.match(repo[None])
   521         opts[b'dry_run'] = True
   521         opts[b'dry_run'] = True
   522         timer(lambda: scmutil.addremove(repo, matcher, b"", opts))
   522         if b'uipathfn' in getargspec(scmutil.addremove).args:
       
   523             uipathfn = scmutil.getuipathfn(repo)
       
   524             timer(lambda: scmutil.addremove(repo, matcher, b"", uipathfn, opts))
       
   525         else:
       
   526             timer(lambda: scmutil.addremove(repo, matcher, b"", opts))
   523     finally:
   527     finally:
   524         repo.ui.quiet = oldquiet
   528         repo.ui.quiet = oldquiet
   525         fm.end()
   529         fm.end()
   526 
   530 
   527 def clearcaches(cl):
   531 def clearcaches(cl):