changeset 2145:4c0c88e51018

stablerange: stop using '.node' in debugstablerange 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:05:32 +0100
parents 2200f67e1628
children 4df68eb96adf
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: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,