comparison 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
comparison
equal deleted inserted replaced
49870:20f262ab6fd3 49871:cfe8d88a453e
4498 elif opts[b'peer']: 4498 elif opts[b'peer']:
4499 raise error.Abort( 4499 raise error.Abort(
4500 _(b'--peer %s not supported with HTTP peers') % opts[b'peer'] 4500 _(b'--peer %s not supported with HTTP peers') % opts[b'peer']
4501 ) 4501 )
4502 else: 4502 else:
4503 peer = httppeer.makepeer(ui, path, opener=opener) 4503 peer_path = urlutil.try_path(ui, path)
4504 peer = httppeer.makepeer(ui, peer_path, opener=opener)
4504 4505
4505 # We /could/ populate stdin/stdout with sock.makefile()... 4506 # We /could/ populate stdin/stdout with sock.makefile()...
4506 else: 4507 else:
4507 raise error.Abort(_(b'unsupported connection configuration')) 4508 raise error.Abort(_(b'unsupported connection configuration'))
4508 4509