# HG changeset patch # User Pierre-Yves David # Date 1490201961 -3600 # Node ID e2dc8c4897be0d53ee82e85f8e50521290a19a84 # Parent 7967d0b86364fde56c19e86e2fc2792c9c869d56 stablerange: make sure nobody use '.index' anymore We rename the attribute for good measure. diff -r 7967d0b86364 -r e2dc8c4897be hgext3rd/evolve/stablerange.py --- 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)