# HG changeset patch # User Pierre-Yves David # Date 1513797431 -3600 # Node ID 846bdf081871baa3a7a7d92047773f1e608ba6c1 # Parent a67a586792dc25b2a72062090c7db42855574be4 stablerange: drop unused `until` utility We no longer needs this function. diff -r a67a586792dc -r 846bdf081871 hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Wed Dec 20 19:47:19 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Dec 20 20:17:11 2017 +0100 @@ -460,17 +460,6 @@ assert 0 < skips, skips assert 0 < tomap, (tomap, (headrev, initial_index), slicepoint) - # utility function know the size of segment - # (this value could be cached) - def until(start, stop): - revs = walkfrom(start) - count = 0 - for count, r in enumerate(revs, 1): - if r == stop: - break - assert 0 < count, (start, stop) - return count - # utility function to find the next changeset with jump information # (and the distance to it) def nextmerge(startrev):