# HG changeset patch # User Augie Fackler # Date 2019-11-14 20:29:27 # Node ID 6186c2a53ea5441d385dc15d6dc500125f9aaa05 # Parent ba5c39b9324cade154cc922a81e2df6a7bdf1d43 perf: bool() elements of dirstate.status return instead of len() I'm about to make scmutil.status no longer have a len(), so we need to do something else to "use" the results in this perf method. Differential Revision: https://phab.mercurial-scm.org/D7405 diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -788,7 +788,7 @@ def perfstatus(ui, repo, **opts): s = dirstate.status( m, subrepos=[], ignored=False, clean=False, unknown=unknown ) - sum(map(len, s)) + sum(map(bool, s)) timer(status_dirstate) else: