stablerange: stop using '.index' in '_slicepoint'
We now access '[1]' as we'll do with the future tuple.
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 17:52:53 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 17:53:39 2017 +0100
@@ -258,13 +258,13 @@
rangedepth = self.depthrev(repo, rangeid[0])
step = _hlp2(rangedepth)
standard_start = 0
- while standard_start < rangeid.index and 0 < step:
+ while standard_start < rangeid[1] and 0 < step:
if standard_start + step < rangedepth:
standard_start += step
step //= 2
- if rangeid.index == standard_start:
+ if rangeid[1] == standard_start:
slicesize = _hlp2(len(rangeid))
- slicepoint = rangeid.index + slicesize
+ slicepoint = rangeid[1] + slicesize
else:
assert standard_start < rangedepth
slicepoint = standard_start