comparison tests/artifacts/scripts/generate-churning-bundle.py @ 41326:b59676077654 stable

test: stabilize bundle generation for test-sparse-revlog.t To reduce the instability in the bundle binary content, we force it to contains delta against p1 in all cases. In the previous changeset, we already stabilized the processing of the bundle. So we don't see any output change in the test itself.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 24 Feb 2019 19:56:46 +0100
parents 4ca7a67c94c8
children 5f198b690301
comparison
equal deleted inserted replaced
41325:c59987ab96b4 41326:b59676077654
117 hg('update', ".~%d" % move_back) 117 hg('update', ".~%d" % move_back)
118 if (idx % PERIOD_MERGING) == 0: 118 if (idx % PERIOD_MERGING) == 0:
119 hg('merge', 'min(head())') 119 hg('merge', 'min(head())')
120 updatefile(FILENAME, idx) 120 updatefile(FILENAME, idx)
121 hg('commit', '--message', 'commit #%d' % idx) 121 hg('commit', '--message', 'commit #%d' % idx)
122 hg('bundle', '--all', target) 122 hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1')
123 with open(target, 'rb') as bundle: 123 with open(target, 'rb') as bundle:
124 data = bundle.read() 124 data = bundle.read()
125 digest = hashlib.md5(data).hexdigest() 125 digest = hashlib.md5(data).hexdigest()
126 with open(target + '.md5', 'wb') as md5file: 126 with open(target + '.md5', 'wb') as md5file:
127 md5file.write(digest + '\n') 127 md5file.write(digest + '\n')