stablerange: stop using '.index' in '_queryrange'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:52:29 +0100
changeset 2158 efcfc99e82a4
parent 2157 e3b75a5d6b38
child 2159 9b052257c743
stablerange: stop using '.index' in '_queryrange' 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:52:08 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 17:52:29 2017 +0100
@@ -323,7 +323,7 @@
 def _queryrange(ui, repo, remote, allentries):
     mapping = {}
     n = repo.changelog.node
-    nodeentries = [(n(entry[0]), entry.index, entry) for entry in allentries]
+    nodeentries = [(n(entry[0]), entry[1], entry) for entry in allentries]
 
     def gen():
         for enode, eindex, entry in nodeentries: