Mercurial > public > mercurial-scm > hg-stable
comparison tests/artifacts/scripts/generate-churning-bundle.py @ 41805:5f198b690301
merge with stable
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 25 Feb 2019 18:51:08 -0800 |
parents | 56a0de3d581c b59676077654 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
41804:64de5f44eec3 | 41805:5f198b690301 |
---|---|
116 hg('update', ".~%d" % move_back) | 116 hg('update', ".~%d" % move_back) |
117 if (idx % PERIOD_MERGING) == 0: | 117 if (idx % PERIOD_MERGING) == 0: |
118 hg('merge', 'min(head())') | 118 hg('merge', 'min(head())') |
119 updatefile(FILENAME, idx) | 119 updatefile(FILENAME, idx) |
120 hg('commit', '--message', 'commit #%d' % idx) | 120 hg('commit', '--message', 'commit #%d' % idx) |
121 hg('bundle', '--all', target) | 121 hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1') |
122 with open(target, 'rb') as bundle: | 122 with open(target, 'rb') as bundle: |
123 data = bundle.read() | 123 data = bundle.read() |
124 digest = hashlib.md5(data).hexdigest() | 124 digest = hashlib.md5(data).hexdigest() |
125 with open(target + '.md5', 'wb') as md5file: | 125 with open(target + '.md5', 'wb') as md5file: |
126 md5file.write(digest + '\n') | 126 md5file.write(digest + '\n') |