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

login
register
mail settings
Submitter phabricator
Date Nov. 15, 2019, 3:44 a.m.
Message ID <e26484b638fed2b2922566e9fcedcba0@localhost.localdomain>
Download mbox | patch
Permalink /patch/43249/
State Not Applicable
Headers show

Comments

phabricator - Nov. 15, 2019, 3:44 a.m.
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




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

Patch

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: