comparison tests/test-obsolete-bundle-strip.t @ 49335:04cdb442a892

bundlespec: handle the presence of obsmarker part This make `hg debugbundle --spec` more informative about extra part in the bundle.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 May 2022 11:53:34 +0200
parents d89bfc075289
children
comparison
equal deleted inserted replaced
49334:6d15a8971e30 49335:04cdb442a892
1487 $ grep -v evolution.bundle-obsmarker $HGRCPATH > a 1487 $ grep -v evolution.bundle-obsmarker $HGRCPATH > a
1488 $ mv a $HGRCPATH 1488 $ mv a $HGRCPATH
1489 1489
1490 $ hg bundle -R repo-with-obs --type 'v2;obsolescence=yes' --all --hidden bundle-type-with-obs 1490 $ hg bundle -R repo-with-obs --type 'v2;obsolescence=yes' --all --hidden bundle-type-with-obs
1491 1 changesets found 1491 1 changesets found
1492 $ hg debugbundle --spec bundle-type-with-obs
1493 bzip2-v2;obsolescence=yes
1492 $ hg debugbundle bundle-type-with-obs --part-type obsmarkers 1494 $ hg debugbundle bundle-type-with-obs --part-type obsmarkers
1493 Stream params: {Compression: BZ} 1495 Stream params: {Compression: BZ}
1494 obsmarkers -- {} (mandatory: True) 1496 obsmarkers -- {} (mandatory: True)
1495 version: 1 (50 bytes) 1497 version: 1 (50 bytes)
1496 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} 1498 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
1497 1499
1498 $ hg bundle -R repo-with-obs --type 'v2;obsolescence=yes;obsolescence-mandatory=no' --all --hidden bundle-type-with-obs-adv 1500 $ hg bundle -R repo-with-obs --type 'v2;obsolescence=yes;obsolescence-mandatory=no' --all --hidden bundle-type-with-obs-adv
1499 1 changesets found 1501 1 changesets found
1502 $ hg debugbundle --spec bundle-type-with-obs-adv
1503 bzip2-v2;obsolescence=yes;obsolescence-mandatory=no
1500 $ hg debugbundle bundle-type-with-obs-adv --part-type obsmarkers 1504 $ hg debugbundle bundle-type-with-obs-adv --part-type obsmarkers
1501 Stream params: {Compression: BZ} 1505 Stream params: {Compression: BZ}
1502 obsmarkers -- {} (mandatory: False) 1506 obsmarkers -- {} (mandatory: False)
1503 version: 1 (50 bytes) 1507 version: 1 (50 bytes)
1504 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} 1508 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
1505 $ hg bundle -R repo-with-obs --type 'v2;obsolescence=no' --all --hidden bundle-type-without-obs 1509 $ hg bundle -R repo-with-obs --type 'v2;obsolescence=no' --all --hidden bundle-type-without-obs
1506 1 changesets found 1510 1 changesets found
1511 $ hg debugbundle --spec bundle-type-without-obs
1512 bzip2-v2
1507 $ hg debugbundle bundle-type-without-obs --part-type obsmarkers 1513 $ hg debugbundle bundle-type-without-obs --part-type obsmarkers
1508 Stream params: {Compression: BZ} 1514 Stream params: {Compression: BZ}
1509 1515
1510 Test bundlespec overwrite local config 1516 Test bundlespec overwrite local config
1511 -------------------------------------- 1517 --------------------------------------
1512 1518
1513 $ hg bundle -R repo-with-obs --config experimental.evolution.bundle-obsmarker=false --type 'v2;obsolescence=yes' --all --hidden bundle-type-with-obs2 1519 $ hg bundle -R repo-with-obs --config experimental.evolution.bundle-obsmarker=false --type 'v2;obsolescence=yes' --all --hidden bundle-type-with-obs2
1514 1 changesets found 1520 1 changesets found
1521 $ hg debugbundle --spec bundle-type-with-obs2
1522 bzip2-v2;obsolescence=yes
1515 $ hg debugbundle bundle-type-with-obs2 --part-type obsmarkers 1523 $ hg debugbundle bundle-type-with-obs2 --part-type obsmarkers
1516 Stream params: {Compression: BZ} 1524 Stream params: {Compression: BZ}
1517 obsmarkers -- {} (mandatory: True) 1525 obsmarkers -- {} (mandatory: True)
1518 version: 1 (50 bytes) 1526 version: 1 (50 bytes)
1519 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} 1527 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
1520 $ hg bundle -R repo-with-obs --config experimental.evolution.bundle-obsmarker=true --type 'v2;obsolescence=no' --all --hidden bundle-type-without-obs2 1528 $ hg bundle -R repo-with-obs --config experimental.evolution.bundle-obsmarker=true --type 'v2;obsolescence=no' --all --hidden bundle-type-without-obs2
1521 1 changesets found 1529 1 changesets found
1530 $ hg debugbundle --spec bundle-type-without-obs2
1531 bzip2-v2
1522 $ hg debugbundle bundle-type-without-obs2 --part-type obsmarkers 1532 $ hg debugbundle bundle-type-without-obs2 --part-type obsmarkers
1523 Stream params: {Compression: BZ} 1533 Stream params: {Compression: BZ}