Mercurial > evolve
changeset 2158:efcfc99e82a4
stablerange: stop using '.index' in '_queryrange'
We now access '[1]' as we'll do with the future tuple.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 22 Mar 2017 17:52:29 +0100 |
parents | e3b75a5d6b38 |
children | 9b052257c743 |
files | hgext3rd/evolve/obsdiscovery.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: