Issue #673 resolved

Error cloning subrepo over ssh

John Gee
created an issue

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] }}}

Comments (7)

  1. John Gee reporter

    Yes. (I was working mostly from command line, which I didn't mention! Does that mean this is the wrong place to report the problem?)

    Command line example, using hg as installed with TortoiseHg:

    hg clone ssh://hg@hg.abc.co.nz/hg/test~~/jgee/WeeSub/master m3
    requesting all changes
    adding changesets
    adding manifests
    adding file changes
    added 3 changesets with 4 changes to 3 files
    updating to branch default
    pulling subrepo sub from ssh://hg@hg.abc.co.nz//g/test~~/jgee/WeeSub/sub
    remote: Illegal repository '/g/test~~/jgee/WeeSub/sub'
    abort: no suitable response from remote hg!
    
  2. Log in to comment