diff contrib/perf.py @ 34350:255c761a52db

dirstate: use keyword arguments to clarify walk()'s callers The arguments are especially non-obvious because the order is different from dirstate.status(). Differential Revision: https://phab.mercurial-scm.org/D846
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 29 Sep 2017 14:19:36 -0700
parents b3538c03a804
children bbb5687e5140
line wrap: on
line diff
--- a/contrib/perf.py	Fri Sep 29 14:23:41 2017 -0700
+++ b/contrib/perf.py	Fri Sep 29 14:19:36 2017 -0700
@@ -371,7 +371,8 @@
 def perfwalk(ui, repo, *pats, **opts):
     timer, fm = gettimer(ui, opts)
     m = scmutil.match(repo[None], pats, {})
-    timer(lambda: len(list(repo.dirstate.walk(m, [], True, False))))
+    timer(lambda: len(list(repo.dirstate.walk(m, subrepos=[], unknown=True,
+                                              ignored=False))))
     fm.end()
 
 @command('perfannotate', formatteropts)