# HG changeset patch # User Pierre-Yves David # Date 1490201757 -3600 # Node ID 0a06f5cbca4b45752b945b4ac3f3ff4e328c3524 # Parent 66b774ed13357f7b958d25970fc0b5b61ad55378 stablerange: stop using '.index' in '_slicesrangeat' We now access '[1]' as we'll do with the future tuple. diff -r 66b774ed1335 -r 0a06f5cbca4b hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Wed Mar 22 17:53:39 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 17:55:57 2017 +0100 @@ -278,7 +278,7 @@ rangedepth = self.depthrev(repo, rangeid[0]) topsize = rangedepth - globalindex - parentrange = stablerange(repo, p1, rangeid.index, rangeid._revs[:-1]) + parentrange = stablerange(repo, p1, rangeid[1], rangeid._revs[:-1]) if topsize == 1: top = stablerange(repo, rangeid[0], globalindex, [rangeid[0]]) return [parentrange, top] @@ -297,7 +297,7 @@ @staticmethod def _slicesrangeatmerge(repo, rangeid, globalindex): - localindex = globalindex - rangeid.index + localindex = globalindex - rangeid[1] cl = repo.changelog result = []