# HG changeset patch # User Pierre-Yves David # Date 1512873088 -3600 # Node ID 2d49773a378bdf532f18e9a7c573fe7fe44e8771 # Parent c089495d7701d77ca4bf9af0d94369b51649e453 stablesort: make the iteration from head available to all This will be useful for the stablerange code to work properly. diff -r c089495d7701 -r 2d49773a378b hgext3rd/evolve/stablesort.py --- a/hgext3rd/evolve/stablesort.py Sun Dec 17 21:17:28 2017 +0100 +++ b/hgext3rd/evolve/stablesort.py Sun Dec 10 03:31:28 2017 +0100 @@ -306,14 +306,14 @@ def get(self, repo, rev, limit=None): result = [] - for r in self._revsfrom(repo, rev): + for r in self.walkfrom(repo, rev): result.append(r) if limit is not None and limit <= len(result): break result.reverse() return result - def _revsfrom(self, repo, head): + def walkfrom(self, repo, head): tiebreaker = _mergepoint_tie_breaker(repo) cl = repo.changelog parentsfunc = cl.parentrevs