I'm having some difficulty cloning my mercurial repository over ssh.
Here's what I have tried:
hg clone ssh://username@username.webfactional.com/path/to/projectname projectname
It's giving me this error:
remote: bash: hg: command not found
abort: no suitable response from remote hg!
hg is installed on the server, however.
I was trying to follow the instructions on this website.
Sounds like hg
is not on your path. The Mercurial FAQ mentions possible fixes for this issue: FAQ/CommonProblems.
Add the remotecmd
value to your Mercurial configuration by opening ~/.hgrc
(or Mercurial.ini
on Windows) on your client machine and adding the following:
[ui]
remotecmd = /path/to/hg
where /path/to/hg
is the path to the hg
command on the remote server.
If you're having problems with your Mercurial configuration, you can use the hg showconfig --debug
command to obtain a full list of your Mercurial settings along with the path and line number of the configuration file that defines each configuration value.