--- a/tests/test-requires.t Sat Jan 28 18:26:28 2023 +0400
+++ b/tests/test-requires.t Mon Jan 30 18:25:11 2023 -0500
@@ -81,4 +81,14 @@
abort: required features are not supported in the destination: featuresetup-test
[255]
+Bundlerepo also enforces the underlying repo requirements
+
+ $ hg --cwd supported bundle --all ../bundle.hg
+ 1 changesets found
+ $ echo outdoor-pool > push-dst/.hg/requires
+ $ hg --cwd push-dst log -R ../bundle.hg -T phases
+ abort: repository requires features unknown to this Mercurial: outdoor-pool
+ (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
+ [255]
+
$ cd ..