1
edit
Changes
→Notes
* Remote Repository
:If your remote repository is cloned thusly
<source lang=java>
hg clone ssh://USER@REMOTE/path/to/repo
</source>
:And, you find that after successful ssh authentication you get the error message remote: abort: repository path/to/repo not found! , then you need to know the following:
::Mercurial's remote repository syntax differs from syntax of other well known programs such as rsync, cvs - both of which use a : character to delimit USER@REMOTE from the path component (/path/to/repo).
::The path to the remote repository is relative to $HOME of USER. i.e., it is ~USER/path/to/repo .
::Remember to use hg -v clone ssh://USER@REMOTE/path/to/repo and observe the remote command being executed via the ssh channel
:On the other hand, if the error message is remote: bash: line 1: hg: command not found, the problem is that the environment used by ssh does not have hg in its PATH. There are two ways to deal with this problem:
::In your ~/.hgrc file, set a remotecmd value in the [ui] section giving the exact path to hg.