diff -r ace0da86edd0 -r b08de326bee4 mercurial/debugcommands.py --- 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 = {