Mercurial > evolve
changeset 2165:e97e9b0c9711
stablerange: use rangelength in debugstablerange
We stop using the building '__len__' this get use closer to be able to use a
tuple.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 22 Mar 2017 18:36:37 +0100 |
parents | cc8ae2a66b0f |
children | d4ff8708eb66 |
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 18:35:05 2017 +0100 +++ b/hgext3rd/evolve/obsdiscovery.py Wed Mar 22 18:36:37 2017 +0100 @@ -398,13 +398,14 @@ # prewarm depth cache repo.stablerange.warmup(repo, revs) cl = repo.changelog + rangelength = repo.stablerange.rangelength ranges = stablerange.subrangesclosure(repo, revs) ui.status('rev node index size depth obshash\n') for r in ranges: d = (r[0], s(cl.node(r[0])), r[1], - len(r), + rangelength(repo, r), r.depth, node.short(_obshashrange(repo, r))) ui.status('%3d %s %5d %4d %5d %s\n' % d)