stablerange: use depthrevs in debugstablerange
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 18:53:25 +0100
changeset 2171 3be48332b802
parent 2170 f8d3d965552e
child 2172 e2394b33ae51
stablerange: use depthrevs in debugstablerange We stop using the property from the class to get us closer to tuple.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 18:41:26 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 18:53:25 2017 +0100
@@ -399,6 +399,7 @@
     repo.stablerange.warmup(repo, revs)
     cl = repo.changelog
     rangelength = repo.stablerange.rangelength
+    depthrev = repo.stablerange.depthrev
     ranges = stablerange.subrangesclosure(repo, revs)
     ui.status('rev         node index size depth      obshash\n')
     for r in ranges:
@@ -406,7 +407,7 @@
              s(cl.node(r[0])),
              r[1],
              rangelength(repo, r),
-             r.depth,
+             depthrev(repo, r[0]),
              node.short(_obshashrange(repo, r)))
         ui.status('%3d %s %5d %4d %5d %s\n' % d)