diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py --- a/mercurial/sshpeer.py +++ b/mercurial/sshpeer.py @@ -370,4 +370,5 @@ self._pipeo.flush() self._readerr() -instance = sshpeer +def instance(ui, path, create): + return sshpeer(ui, path, create=create)