In this situation, you should go to the source - hg clone https://www.mercurial-scm.org/repo/hg
. Looking at sshpeer.py line 73 and the context around it, it appears the error is occurring when trying to execute the ssh call.
The most likely causes are:
The developer has a messed-up
ui.ssh
entry in an hgrc somewhere. Possibly they've specified like:[ui] ssh = "ssh -C"
instead of:
[ui] ssh = ssh -C
The developer may have specified a
ui.ssh
section without having appropriate ssh binaries available. By default, TortoiseHg will use PuTTY (it installs the binaries) but Mercurial will obey if you say to use something else.
If checking the above doesn't help, clone the mercurial source, modify it to display the ssh command (sshpeer ~line 73) and install it in pure mode, then try to clone. This will tell you exactly what is being called.
hg clone https://www.mercurial-scm.org/repo/hg
cd hg
<path\to\python>\python setup.py --pure install
cd <other directory>
<path\to\python>\Scripts\hg.bat clone <repo>
Also, please raise a bug report at the appropriate bug tracker.