changeset 51279:51021612aea7 stable

bundle: highlight misbehavior when --base does not match any revision See next changeset for fix and details.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 27 Dec 2023 18:42:13 +0100
parents d7155949535e
children c17cf2d51ff4
files tests/test-bundle-r.t
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bundle-r.t	Sat Nov 18 00:16:15 2023 +0100
+++ b/tests/test-bundle-r.t	Wed Dec 27 18:42:13 2023 +0100
@@ -140,6 +140,15 @@
   $ hg -R test bundle --base 2 --all test-bundle-all-2.hg
   ignoring --base because --all was specified
   9 changesets found
+  $ hg -R test bundle --base 3-3 -r tip test-base-match-nothing-with-dest.hg --config paths.default=$TESTTMP/test-3
+  searching for changes (known-bad-output !)
+  1 changesets found (known-bad-output !)
+  5 changesets found (missing-correct-output !)
+  $ hg -R test bundle --base 3-3 -r tip test-base-match-nothing-no-dest.hg
+  config error: default repository not configured! (known-bad-output !)
+  (see 'hg help config.paths') (known-bad-output !)
+  5 changesets found (missing-correct-output !)
+  [30]
   $ hg -R test bundle --base 3 -r tip test-bundle-should-fail.hg
   1 changesets found