mercurial/debugcommands.py
changeset 51824 b08de326bee4
parent 51552 15e680a44502
child 51859 f4733654f144
--- a/mercurial/debugcommands.py	Fri Jun 28 16:26:06 2024 +0200
+++ b/mercurial/debugcommands.py	Sun Jun 30 02:46:53 2024 +0200
@@ -4510,8 +4510,10 @@
         # TODO consider not doing this because we skip
         # ``hg.wirepeersetupfuncs`` and potentially other useful functionality.
         u = urlutil.url(path)
-        if u.scheme != b'http':
-            raise error.Abort(_(b'only http:// paths are currently supported'))
+        if u.scheme not in (b'http', b'https'):
+            raise error.Abort(
+                _(b'only http:// and https:// paths are currently supported')
+            )
 
         url, authinfo = u.authinfo()
         openerargs = {