diff tests/artifacts/scripts/generate-churning-bundle.py @ 52436:599c696bb514

test-sparse-revlog: sanity check more part of the graph This will help assess the quality of future changes.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 03 Dec 2024 23:49:37 +0100
parents d7155949535e
children e26b738430a1
line wrap: on
line diff
--- a/tests/artifacts/scripts/generate-churning-bundle.py	Wed Dec 04 10:21:23 2024 +0100
+++ b/tests/artifacts/scripts/generate-churning-bundle.py	Tue Dec 03 23:49:37 2024 +0100
@@ -117,7 +117,7 @@
                 print("generating commit #%d/%d" % (idx, NB_CHANGESET))
             if (idx % PERIOD_BRANCHING) == 0:
                 move_back = MOVE_BACK_MIN + (idx % MOVE_BACK_RANGE)
-                hg('update', ".~%d" % move_back)
+                hg('update', "max(0+.~%d)" % move_back)
             if (idx % PERIOD_MERGING) == 0:
                 hg('merge', 'min(head())')
             updatefile(FILENAME, idx)