# HG changeset patch # User Pierre-Yves David # Date 1512870365 -3600 # Node ID 4a84947010a1b2287ed4ab24df10f3964a1e25e2 # Parent 20b6dae466a79fa397b6ea6005e870171fc2e4ad stablesort: expose the jumps sequence to other code The stable range needs it to build exclusive subrange efficiently. diff -r 20b6dae466a7 -r 4a84947010a1 hgext3rd/evolve/stablesort.py --- a/hgext3rd/evolve/stablesort.py Wed Dec 20 16:20:26 2017 +0100 +++ b/hgext3rd/evolve/stablesort.py Sun Dec 10 02:46:05 2017 +0100 @@ -329,6 +329,12 @@ result.reverse() return result + def getjumps(self, repo, rev): + if self._jumps[rev] is None: + # still won't load anything if rev is not a merge + self.get(repo, rev) # we can be smarter here + return self._jumps[rev] + def walkfrom(self, repo, head): tiebreaker = _mergepoint_tie_breaker(repo) cl = repo.changelog