changeset 2144:2200f67e1628

stablerange: stop using '.node' in findmissingrange We access the range-head revision number by index and convert it on site.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 22 Mar 2017 06:04:30 +0100
parents 99cf2784e2a6
children 4c0c88e51018
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)