# HG changeset patch # User Pierre-Yves David # Date 1490201549 -3600 # Node ID efcfc99e82a44de1065bf653a811817abd1e3249 # Parent e3b75a5d6b38684050056129ed63792137b4a32d stablerange: stop using '.index' in '_queryrange' We now access '[1]' as we'll do with the future tuple. diff -r e3b75a5d6b38 -r efcfc99e82a4 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: