comparison mercurial/sshpeer.py @ 49863:a6e2a668c746

peer: have a common constructor and use it For now it does not do much, but we will extend it to also store a path object soon.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Dec 2022 00:00:41 +0100
parents f075a9463ee7
children 5f71fff8dc74
comparison
equal deleted inserted replaced
49862:f075a9463ee7 49863:a6e2a668c746
381 pipes for that process. 381 pipes for that process.
382 ``caps`` is a set of capabilities supported by the remote. 382 ``caps`` is a set of capabilities supported by the remote.
383 ``autoreadstderr`` denotes whether to automatically read from 383 ``autoreadstderr`` denotes whether to automatically read from
384 stderr and to forward its output. 384 stderr and to forward its output.
385 """ 385 """
386 super().__init__(ui)
386 self._url = url 387 self._url = url
387 self.ui = ui
388 # self._subprocess is unused. Keeping a handle on the process 388 # self._subprocess is unused. Keeping a handle on the process
389 # holds a reference and prevents it from being garbage collected. 389 # holds a reference and prevents it from being garbage collected.
390 self._subprocess = proc 390 self._subprocess = proc
391 391
392 # And we hook up our "doublepipe" wrapper to allow querying 392 # And we hook up our "doublepipe" wrapper to allow querying