stablerange: make sure nobody use '.index' anymore
We rename the attribute for good measure.
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 17:57:04 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 17:59:21 2017 +0100
@@ -341,7 +341,7 @@
def __init__(self, repo, head, index, revs=None):
self._repo = repo.unfiltered()
self._head = head
- self.index = index
+ self._index = index
if revs is not None:
assert len(revs) == len(self)
self._revs = revs
@@ -364,7 +364,7 @@
if idx == 0:
return self._head
elif idx == 1:
- return self.index
+ return self._index
else:
raise IndexError(idx)