bundlespec: test `no` value for the `obsolescence` parameter
This is currently broken, but let us test for it first.
--- 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 !)