changeset 49329:2f60e2242f03

bundlespec: test `no` value for the `obsolescence` parameter This is currently broken, but let us test for it first.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 May 2022 10:30:11 +0200
parents aaa7df6992ea
children 5d17dd74177d
files tests/test-obsolete-bundle-strip.t
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-obsolete-bundle-strip.t	Wed May 25 03:18:47 2022 +0200
+++ b/tests/test-obsolete-bundle-strip.t	Wed May 25 10:30:11 2022 +0200
@@ -1494,6 +1494,13 @@
   obsmarkers -- {} (mandatory: True)
       version: 1 (50 bytes)
       1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
+  $ hg bundle -R repo-with-obs --type 'v2;obsolescence=no' --all --hidden bundle-type-without-obs
+  1 changesets found
+  $ hg debugbundle bundle-type-without-obs --part-type obsmarkers
+  Stream params: {Compression: BZ}
+  obsmarkers -- {} (mandatory: True) (known-bad-output !)
+      version: 1 (50 bytes) (known-bad-output !)
+      1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} (known-bad-output !)
 
 Test bundlespec overwrite local config
 --------------------------------------
@@ -1505,3 +1512,10 @@
   obsmarkers -- {} (mandatory: True)
       version: 1 (50 bytes)
       1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
+  $ hg bundle -R repo-with-obs --config experimental.evolution.bundle-obsmarker=true --type 'v2;obsolescence=no' --all --hidden bundle-type-without-obs2
+  1 changesets found
+  $ hg debugbundle bundle-type-without-obs2 --part-type obsmarkers
+  Stream params: {Compression: BZ}
+  obsmarkers -- {} (mandatory: True) (known-bad-output !)
+      version: 1 (50 bytes) (known-bad-output !)
+      1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} (known-bad-output !)