stablerange: stop using '.node' in debugstablerange
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 06:05:32 +0100
changeset 2145 4c0c88e51018
parent 2144 2200f67e1628
child 2146 4df68eb96adf
stablerange: stop using '.node' in debugstablerange 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:04:30 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 06:05:32 2017 +0100
@@ -394,11 +394,12 @@
     revs = scmutil.revrange(repo, opts['rev'])
     # prewarm depth cache
     repo.stablerange.warmup(repo, revs)
+    cl = repo.changelog
     ranges = stablerange.subrangesclosure(repo, revs)
     ui.status('rev         node index size depth      obshash\n')
     for r in ranges:
         d = (r.head,
-             s(r.node),
+             s(cl.node(r[0])),
              r.index,
              len(r),
              r.depth,