stablerange: use depthrevs in debugstablerange
We stop using the property from the class to get us closer to tuple.
--- 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)