contrib/perf.py
changeset 41652 6a447a3d1bd0
parent 41615 328ca3b9e545
child 42015 dbca2e5563c3
--- 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()