changeset 49324:61ba04693d65

bundlespec: test if the "obsolete=" parameter is read Narrator voice: Actually it is not. We will fix it in the next changeset.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 May 2022 03:16:53 +0200
parents c8acaaa99210
children bf66f7a1e3f8
files tests/test-obsolete-bundle-strip.t
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-obsolete-bundle-strip.t	Tue May 17 16:59:31 2022 +0100
+++ b/tests/test-obsolete-bundle-strip.t	Wed May 25 03:16:53 2022 +0200
@@ -1477,3 +1477,20 @@
   added 1 changesets with 0 changes to 0 files
   new changesets 1ea73414a91b (1 drafts)
   (run 'hg update' to get a working copy)
+  $ cd ..
+
+Test bundlespec overwrite default
+---------------------------------
+
+# move back to the default
+
+  $ grep -v evolution.bundle-obsmarker $HGRCPATH > a
+  $ mv a $HGRCPATH
+
+  $ hg bundle -R repo-with-obs --type 'v2;obsolescence=yes' --all --hidden bundle-type-with-obs
+  1 changesets found
+  $ hg debugbundle bundle-type-with-obs --part-type obsmarkers
+  Stream params: {Compression: BZ}
+  obsmarkers -- {} (mandatory: True) (missing-correct-output !)
+      version: 1 (50 bytes) (missing-correct-output !)
+      1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} (missing-correct-output !)