diff -r e8c8d81eb864 -r 8e3021fd1a44 tests/test-bundle-phases.t --- a/tests/test-bundle-phases.t Thu Jun 22 10:10:02 2017 -0700 +++ b/tests/test-bundle-phases.t Thu Jun 15 00:15:52 2017 -0700 @@ -170,6 +170,32 @@ | o A public +Unbundling change in the middle of a stack does not affect later changes + $ hg strip --no-backup E + $ hg phase --secret --force D + $ hg log -G -T '{desc} {phase}\n' + o D secret + | + o C draft + | + o B draft + | + o A public + + $ hg bundle --base A -r B bundle + 1 changesets found + $ hg unbundle -q bundle + $ rm bundle + $ hg log -G -T '{desc} {phase}\n' + o D secret + | + o C draft + | + o B draft + | + o A public + + $ cd .. Set up repo with non-linear history