Mercurial > evolve
changeset 3331:846bdf081871
stablerange: drop unused `until` utility
We no longer needs this function.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 20 Dec 2017 20:17:11 +0100 |
parents | a67a586792dc |
children | 7d4c157b6519 |
files | hgext3rd/evolve/stablerange.py |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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):