bundlespec: test that parameter overwrite the local config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 25 May 2022 03:18:47 +0200
changeset 49328 aaa7df6992ea
parent 49327 5bc3e76f919d
child 49329 2f60e2242f03
bundlespec: test that parameter overwrite the local config This is currently working, but havint it explicitly tested seems useful.
tests/test-obsolete-bundle-strip.t
--- a/tests/test-obsolete-bundle-strip.t	Tue May 24 18:43:24 2022 +0200
+++ b/tests/test-obsolete-bundle-strip.t	Wed May 25 03:18:47 2022 +0200
@@ -1494,3 +1494,14 @@
   obsmarkers -- {} (mandatory: True)
       version: 1 (50 bytes)
       1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
+
+Test bundlespec overwrite local config
+--------------------------------------
+
+  $ hg bundle -R repo-with-obs --config experimental.evolution.bundle-obsmarker=false --type 'v2;obsolescence=yes' --all --hidden bundle-type-with-obs2
+  1 changesets found
+  $ hg debugbundle bundle-type-with-obs2 --part-type obsmarkers
+  Stream params: {Compression: BZ}
+  obsmarkers -- {} (mandatory: True)
+      version: 1 (50 bytes)
+      1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}