stablerange: use subranges from the main class in subrangesclosure
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 19:21:41 +0100
changeset 2176 f5e1e43915a1
parent 2175 4162dbe7ff5c
child 2177 61c52915d12b
stablerange: use subranges from the main class in subrangesclosure This is the last method used on the class.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Wed Mar 22 19:21:18 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 19:21:41 2017 +0100
@@ -135,11 +135,12 @@
 
     This is intended for debug purposes. Range are returned from largest to
     smallest in terms of number of revision it contains."""
+    subranges = repo.stablerange.subranges
     toproceed = [stablerange(repo, r, 0, ) for r in heads]
     ranges = set(toproceed)
     while toproceed:
         entry = toproceed.pop()
-        for r in entry.subranges():
+        for r in subranges(repo, entry):
             if r not in ranges:
                 ranges.add(r)
                 toproceed.append(r)