changeset 1380:43dcf62237be stable

evolve: avoid creating changectx object in _allsuccessors The repo lookups and object creations have a significant performance overhead.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 18 Jun 2015 16:14:32 -0700
parents 693cdcd809f2
children 61849d45d47e
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: