Error cloning subrepo over ssh
Created originally on Bitbucket by shadowspawn (John Gee)
In TortoiseHg 2.0.4 (Mercurial 1.8.3) I get an error when cloning a repository with a relative subrepo. It looks like the path gets slightly mangled when processing the subrepo. This clone works on unix command line with Mercurial 1.8.3, and works with TortoiseHg 1.1.7. The clone also works if the repository is specified using http rather than ssh.
After hitting the problem with a "real" repository, I created a simple repository where the master has no contents apart from .hgsub with:\ sub = ../sub
Hostname slightly changed, all other details untouched: {{{ hg clone --verbose ssh://hg@hg.abc.co.nz/hg/test~~/jgee/WeeSub/master -- E:\scratch~~\WeeSub running ""TortoisePlink.exe" -ssh -2 -i "C:\Users\Peter\Documents\Keys\hgPrivate.ppk" hg@hg.abc.co.nz "hg -R hg/test~~/jgee/WeeSub/master serve --stdio"" requesting all changes adding changesets adding manifests adding file changes added 3 changesets with 4 changes to 3 files updating to branch default resolving manifests getting .hgsub getting .hgsubstate pulling subrepo sub from ssh://hg@hg.abc.co.nz//g/test~~/jgee/WeeSub/sub running ""TortoisePlink.exe" -ssh -2 -i "C:\Users\Peter\Documents\Keys\hgPrivate.ppk" hg@hg.abc.co.nz "hg -R /g/test~~/jgee/WeeSub/sub serve --stdio"" remote: Illegal repository '/g/test~~/jgee/WeeSub/sub' no suitable response from remote hg [command returned code 255 Tue May 10 11:15:26 2011] }}}