contrib/perf.py
changeset 18871 a2d4ab4f575d
parent 18845 c1f416e4bc80
child 18877 2e9fe9e2671f
--- a/contrib/perf.py	Wed Apr 03 11:35:27 2013 -0700
+++ b/contrib/perf.py	Mon Apr 01 23:09:36 2013 -0700
@@ -54,6 +54,15 @@
     #                                                False))))
     timer(lambda: sum(map(len, repo.status(**opts))))
 
+@command('perfaddremove')
+def perfaddremove(ui, repo):
+    try:
+        oldquiet = repo.ui.quiet
+        repo.ui.quiet = True
+        timer(lambda: scmutil.addremove(repo, dry_run=True))
+    finally:
+        repo.ui.quiet = oldquiet
+
 def clearcaches(cl):
     # behave somewhat consistently across internal API changes
     if util.safehasattr(cl, 'clearcaches'):