changeset 50370:ef7f943ebabf stable

clonebundles: demonstrate bad behaviour when unknown scheme is present
author Mathias De Mare <mathias.de_mare@nokia.com>
date Thu, 20 Apr 2023 10:48:12 +0200
parents 558d08dc7dd4
children 7b723217d368
files tests/test-clonebundles.t
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-clonebundles.t	Thu May 04 14:17:28 2023 +0200
+++ b/tests/test-clonebundles.t	Thu Apr 20 10:48:12 2023 +0200
@@ -59,6 +59,15 @@
   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
   [255]
 
+Manifest file with URL with unknown scheme skips the URL
+  $ echo 'weirdscheme://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
+  $ hg clone http://localhost:$HGPORT unknown-scheme
+  applying clone bundle from weirdscheme://does.not.exist/bundle.hg (known-bad-output !)
+  error fetching bundle: unknown url type: weirdscheme (known-bad-output !)
+  abort: error applying bundle (known-bad-output !)
+  (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") (known-bad-output !)
+  [255]
+
 Server is not running aborts
 
   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest