# HG changeset patch # User Pierre-Yves David # Date 1490205205 -3600 # Node ID 3be48332b8029f86196dddae261c02518f2aa321 # Parent f8d3d965552e09a95b8dd4aa615fba6fa4962911 stablerange: use depthrevs in debugstablerange We stop using the property from the class to get us closer to tuple. diff -r f8d3d965552e -r 3be48332b802 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)