# HG changeset patch # User Pierre-Yves David # Date 1434669272 25200 # Node ID 43dcf62237bec7a71633adf6cd725bf7c572ff10 # Parent 693cdcd809f2e3aeb4fb8b329b17eedb15aff8e1 evolve: avoid creating changectx object in _allsuccessors The repo lookups and object creations have a significant performance overhead. diff -r 693cdcd809f2 -r 43dcf62237be hgext/evolve.py --- a/hgext/evolve.py Thu Jun 18 16:14:16 2015 -0700 +++ b/hgext/evolve.py Thu Jun 18 16:14:32 2015 -0700 @@ -459,7 +459,8 @@ haltonflags allows to provide flags which prevent the evaluation of a marker. """ - toproceed = [repo[r].node() for r in s] + node = repo.changelog.node + toproceed = [node(r) for r in s] seen = set() allobjects = repo.obsstore.successors while toproceed: