D7405: perf: bool() elements of dirstate.status return instead of len()

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Nov 14 22:44:08 EST 2019


Closed by commit rHG6186c2a53ea5: perf: bool() elements of dirstate.status return instead of len() (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7405?vs=18095&id=18133

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7405/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7405

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -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:



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list