stablerange: stop using '.node' in findmissingrange
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 06:04:30 +0100
changeset 2144 2200f67e1628
parent 2143 99cf2784e2a6
child 2145 4c0c88e51018
stablerange: stop using '.node' in findmissingrange We access the range-head revision number by index and convert it on site.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 06:03:57 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 06:04:30 2017 +0100
@@ -304,12 +304,13 @@
         nbreplies = 0
         replies = list(_queryrange(ui, local, remote, sample))
         sample = []
+        n = local.changelog.node
         for entry, remotehash in replies:
             nbreplies += 1
             if remotehash == _obshashrange(local, entry):
                 continue
             elif 1 == len(entry):
-                missing.add(entry.node)
+                missing.add(n(entry[0]))
             else:
                 for new in entry.subranges():
                     addentry(new)