diff contrib/perf.py @ 23533:891aaa7c0c70

scmutil: pass a matcher to scmutil.addremove() instead of a list of patterns This will make it easier to support subrepository operations.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 09 Nov 2014 19:57:02 -0500
parents ccb93e9affc1
children f1b06a8aad42
line wrap: on
line diff
--- a/contrib/perf.py	Wed Dec 10 23:46:47 2014 -0500
+++ b/contrib/perf.py	Sun Nov 09 19:57:02 2014 -0500
@@ -94,7 +94,8 @@
     try:
         oldquiet = repo.ui.quiet
         repo.ui.quiet = True
-        timer(lambda: scmutil.addremove(repo, dry_run=True))
+        matcher = scmutil.match(repo[None])
+        timer(lambda: scmutil.addremove(repo, matcher, dry_run=True))
     finally:
         repo.ui.quiet = oldquiet
         fm.end()