stablerange: stop using '.index' in debugstablerange
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:52:08 +0100
changeset 2157 e3b75a5d6b38
parent 2156 e57f28fafe41
child 2158 efcfc99e82a4
stablerange: stop using '.index' in debugstablerange We now access '[1]' as we'll do with the future tuple.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 17:48:39 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 17:52:08 2017 +0100
@@ -402,7 +402,7 @@
     for r in ranges:
         d = (r[0],
              s(cl.node(r[0])),
-             r.index,
+             r[1],
              len(r),
              r.depth,
              node.short(_obshashrange(repo, r)))