Patchwork [3,of,8,"STABLE] test: stabilize bundle generation for test-sparse-revlog.t

login
register
mail settings
Submitter Pierre-Yves David
Date Feb. 24, 2019, 7:42 p.m.
Message ID <2479767a0f4167d9dbd3.1551037362@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/38910/
State Accepted
Headers show

Comments

Pierre-Yves David - Feb. 24, 2019, 7:42 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1551034606 -3600
#      Sun Feb 24 19:56:46 2019 +0100
# Branch stable
# Node ID 2479767a0f4167d9dbd37e63eaacc5912a7ccfc3
# Parent  e97acc97f716317d874b76b3b5ee7a4f2e2bd1d6
# EXP-Topic test-sparse-revlog
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 2479767a0f41
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.

Patch

diff --git a/tests/artifacts/cache/big-file-churn.hg.md5 b/tests/artifacts/cache/big-file-churn.hg.md5
--- a/tests/artifacts/cache/big-file-churn.hg.md5
+++ b/tests/artifacts/cache/big-file-churn.hg.md5
@@ -1,1 +1,1 @@ 
-403f5c247ad7cf58d3fad247a6b5e731
+cb1e67ae6b17ba66dd455f9782692f4a
diff --git a/tests/artifacts/scripts/generate-churning-bundle.py b/tests/artifacts/scripts/generate-churning-bundle.py
--- a/tests/artifacts/scripts/generate-churning-bundle.py
+++ b/tests/artifacts/scripts/generate-churning-bundle.py
@@ -119,7 +119,7 @@  def run(target):
                 hg('merge', 'min(head())')
             updatefile(FILENAME, idx)
             hg('commit', '--message', 'commit #%d' % idx)
-        hg('bundle', '--all', target)
+        hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1')
         with open(target, 'rb') as bundle:
             data = bundle.read()
             digest = hashlib.md5(data).hexdigest()