contrib/perf.py
changeset 14671 35c2cc322ba8
parent 14494 1ffeeb91c55d
child 16260 33fcad3cfbbc
--- a/contrib/perf.py	Sat Jun 18 16:52:51 2011 -0500
+++ b/contrib/perf.py	Sat Jun 18 16:52:51 2011 -0500
@@ -31,11 +31,11 @@
 
 def perfwalk(ui, repo, *pats):
     try:
-        m = scmutil.match(repo, pats, {})
+        m = scmutil.match(repo[None], pats, {})
         timer(lambda: len(list(repo.dirstate.walk(m, [], True, False))))
     except:
         try:
-            m = scmutil.match(repo, pats, {})
+            m = scmutil.match(repo[None], pats, {})
             timer(lambda: len([b for a, b, c in repo.dirstate.statwalk([], m)]))
         except:
             timer(lambda: len(list(cmdutil.walk(repo, pats, {}))))