--- a/contrib/perf.py Thu Feb 07 23:19:33 2019 -0800
+++ b/contrib/perf.py Thu Feb 07 23:25:39 2019 -0800
@@ -519,7 +519,11 @@
repo.ui.quiet = True
matcher = scmutil.match(repo[None])
opts[b'dry_run'] = True
- timer(lambda: scmutil.addremove(repo, matcher, b"", opts))
+ if b'uipathfn' in getargspec(scmutil.addremove).args:
+ uipathfn = scmutil.getuipathfn(repo)
+ timer(lambda: scmutil.addremove(repo, matcher, b"", uipathfn, opts))
+ else:
+ timer(lambda: scmutil.addremove(repo, matcher, b"", opts))
finally:
repo.ui.quiet = oldquiet
fm.end()