diff -r a89381e04c58 -r 4b7d5d10c45d tests/test-amend-subrepo.t --- a/tests/test-amend-subrepo.t Thu Dec 05 16:19:16 2019 -0500 +++ b/tests/test-amend-subrepo.t Thu Dec 12 12:30:15 2019 -0500 @@ -164,4 +164,35 @@ R .hgsub R .hgsubstate +broken repositories will refuse to push + +#if obsstore-off + $ hg up -q -C 2 +#else + $ hg up -q -C 6 +#endif + $ echo c >> t/b + $ hg amend -q -R t + + $ hg init ../dest + $ hg init ../dest/t + $ hg init ../dest/s + $ hg push -q ../dest + abort: subrepo 't' is hidden in revision 04aa62396ec6 (obsstore-on !) + abort: subrepo 't' not found in revision 04aa62396ec6 (obsstore-off !) + [255] + +... unless forced + + $ hg push --force -q ../dest + $ hg verify -R ../dest + checking changesets + checking manifests + crosschecking files in changesets and manifests + checking files + checked 5 changesets with 12 changes to 4 files + checking subrepo links + subrepo 't' not found in revision 04aa62396ec6 + subrepo 't' not found in revision 6bce99600681 + $ cd ..