From 7b6f474533cba72294c07b4f36f378923b2e18db Mon Sep 17 00:00:00 2001 From: Antoine Lambert <antoine.lambert@inria.fr> Date: Mon, 2 Dec 2019 19:56:37 +0100 Subject: [PATCH] hypothesis_strategies/snapshots: Explain last post-processing step --- swh/model/hypothesis_strategies.py | 1 + 1 file changed, 1 insertion(+) diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py index 15e3bdd9..fcf67ca4 100644 --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -200,6 +200,7 @@ def snapshots(draw, *, min_size=0, max_size=100, only_objects=False): for alias in unresolved_aliases: branches[alias] = draw(branch_targets(only_objects=True)) + # Ensure no cycles between aliases while True: try: id_ = snapshot_identifier({ -- GitLab