# HG changeset patch # User Augie Fackler # Date 1573763367 18000 # 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 -r ba5c39b9324c -r 6186c2a53ea5 contrib/perf.py --- a/contrib/perf.py Thu Nov 14 15:28:44 2019 -0500 +++ b/contrib/perf.py Thu Nov 14 15:29:27 2019 -0500 @@ -788,7 +788,7 @@ s = dirstate.status( m, subrepos=[], ignored=False, clean=False, unknown=unknown ) - sum(map(len, s)) + sum(map(bool, s)) timer(status_dirstate) else: