# HG changeset patch # User Pierre-Yves David # Date 1513768799 -3600 # Node ID a950e6cc5e9e44780f1c8a178d5e7d65b08cf675 # Parent 76e5b5ae68644e49ff6e08b1c547057915049fae stablesort: clarify subcall to the exclusive side Before doing deeper rework of this logic, we tackle the simplest parts. diff -r 76e5b5ae6864 -r a950e6cc5e9e hgext3rd/evolve/stablesort.py --- a/hgext3rd/evolve/stablesort.py Wed Dec 20 13:18:49 2017 +0100 +++ b/hgext3rd/evolve/stablesort.py Wed Dec 20 12:19:59 2017 +0100 @@ -388,12 +388,9 @@ rev = current jumps = [] - for rev in self._process_exclusive_side(lower_parent, - higher_parent, - cl.findmissingrevs, - parents, - tiebreaker, - jumps): + process = self._process_exclusive_side + for rev in process(lower_parent, higher_parent, cl, parents, + tiebreaker, jumps): yield rev jumps.append((rev, lower_parent, JUMPFINAL)) @@ -402,11 +399,10 @@ current = lower_parent - def _process_exclusive_side(self, lower, higher, findmissingrevs, - parents, tiebreaker, jumps): + def _process_exclusive_side(self, lower, higher, cl, parents, tiebreaker, + jumps): - exclusive = findmissingrevs(common=[lower], - heads=[higher]) + exclusive = cl.findmissingrevs(common=[lower], heads=[higher]) stack = [] seen = set()