stablerange: use subranges from the main class in _obshashrange
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 19:21:18 +0100
changeset 2175 4162dbe7ff5c
parent 2174 71c518470e2c
child 2176 f5e1e43915a1
stablerange: use subranges from the main class in _obshashrange This is the last method used on the class.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 19:20:30 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 19:21:18 2017 +0100
@@ -430,7 +430,7 @@
             pieces.append(mbin)
         pieces.sort()
     else:
-        for subrange in rangeid.subranges():
+        for subrange in repo.stablerange.subranges(repo, rangeid):
             obshash = _obshashrange(repo, subrange)
             if obshash != nullid:
                 pieces.append(obshash)