From patchwork Sat Sep 30 06:28:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D845: perf: remove fallbacks to ancient versions of dirstate.walk() From: phabricator X-Patchwork-Id: 24226 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sat, 30 Sep 2017 06:28:07 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGb3538c03a804: perf: remove fallbacks to ancient versions of dirstate.walk() (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D845?vs=2165&id=2170 REVISION DETAIL https://phab.mercurial-scm.org/D845 AFFECTED FILES contrib/perf.py CHANGE DETAILS To: martinvonz, #hg-reviewers, quark Cc: quark, mercurial-devel diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -370,15 +370,8 @@ @command('perfwalk', formatteropts) def perfwalk(ui, repo, *pats, **opts): timer, fm = gettimer(ui, opts) - try: - m = scmutil.match(repo[None], pats, {}) - timer(lambda: len(list(repo.dirstate.walk(m, [], True, False)))) - except Exception: - try: - m = scmutil.match(repo[None], pats, {}) - timer(lambda: len([b for a, b, c in repo.dirstate.statwalk([], m)])) - except Exception: - timer(lambda: len(list(cmdutil.walk(repo, pats, {})))) + m = scmutil.match(repo[None], pats, {}) + timer(lambda: len(list(repo.dirstate.walk(m, [], True, False)))) fm.end() @command('perfannotate', formatteropts)