stablerange: stop using '.node' in _queryrange
We access the range-head revision number by index and convert it on site.
--- a/hgext3rd/evolve/obsdiscovery.py Wed Mar 22 06:05:32 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py Wed Mar 22 06:05:44 2017 +0100
@@ -322,10 +322,12 @@
def _queryrange(ui, repo, remote, allentries):
mapping = {}
+ n = repo.changelog.node
+ nodeentries = [(n(entry[0]), entry.index, entry) for entry in allentries]
def gen():
- for entry in allentries:
- key = entry.node + _pack('>I', entry.index)
+ for enode, eindex, entry in nodeentries:
+ key = enode + _pack('>I', eindex)
mapping[key] = entry
yield key