diff mercurial/debugcommands.py @ 49871:cfe8d88a453e

peer: get the `path` object down to the httppeer One more peer with a path stored.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Dec 2022 00:24:28 +0100
parents 5177be2b4387
children b1e4c74beb6f
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sat Dec 03 05:53:13 2022 +0100
+++ b/mercurial/debugcommands.py	Sat Dec 03 00:24:28 2022 +0100
@@ -4500,7 +4500,8 @@
                 _(b'--peer %s not supported with HTTP peers') % opts[b'peer']
             )
         else:
-            peer = httppeer.makepeer(ui, path, opener=opener)
+            peer_path = urlutil.try_path(ui, path)
+            peer = httppeer.makepeer(ui, peer_path, opener=opener)
 
         # We /could/ populate stdin/stdout with sock.makefile()...
     else: