comparison 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
comparison
equal deleted inserted replaced
52435:7e954b08d129 52436:599c696bb514
115 for idx in range(1, NB_CHANGESET + 1): 115 for idx in range(1, NB_CHANGESET + 1):
116 if sys.stdout.isatty(): 116 if sys.stdout.isatty():
117 print("generating commit #%d/%d" % (idx, NB_CHANGESET)) 117 print("generating commit #%d/%d" % (idx, NB_CHANGESET))
118 if (idx % PERIOD_BRANCHING) == 0: 118 if (idx % PERIOD_BRANCHING) == 0:
119 move_back = MOVE_BACK_MIN + (idx % MOVE_BACK_RANGE) 119 move_back = MOVE_BACK_MIN + (idx % MOVE_BACK_RANGE)
120 hg('update', ".~%d" % move_back) 120 hg('update', "max(0+.~%d)" % move_back)
121 if (idx % PERIOD_MERGING) == 0: 121 if (idx % PERIOD_MERGING) == 0:
122 hg('merge', 'min(head())') 122 hg('merge', 'min(head())')
123 updatefile(FILENAME, idx) 123 updatefile(FILENAME, idx)
124 hg('commit', '--message', 'commit #%d' % idx) 124 hg('commit', '--message', 'commit #%d' % idx)
125 hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1') 125 hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1')