Clarify which of the candidates is the right one - removing assert

This commit is contained in:
Stephan Kulow
2022-11-03 15:29:58 +01:00
parent f2019db8ff
commit dd5e26b779
5 changed files with 4611 additions and 2 deletions

View File

@@ -118,8 +118,9 @@ class TreeBuilder:
candidates = []
node = node.parent
if candidates:
# the assert is here to see if we have more hot cases
assert len(candidates) == 1
# the first candidate is the youngest one that matches the check. That's
# good enough. See FastCGI test case for rev 36 and 38: 37 reverted 36 and
# then 38 reverting the revert before it was submitted.
return candidates[0]
def add_merge_points(self, factory_revisions):