I\'m having some difficulty cloning my mercurial repository over ssh.
Here\'s what I have tried:
hg clone ssh://username@username.webfactional.com/pa
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.
On webfactional I had to add:
export PATH=$PATH:/home/<user>/bin
to .bashrc to get it to work. (also followed the remotecmd advice above)
Looks like mercurial isn't in your user's PATH on the remote server.
On the server, type: nano ~/.bashrc end edit the file by adding:
# User specific aliases and functions
export PATH=$PATH:$HOME/packages/mercurial
Under the assumption that ~/packages is the folder where mercurial was installed.
After editing, finish off with source ~/.bashrc and try again.
Pretty helpful to me was the following elaborate guide to install mercurial on a Bluehost hosting server.
You can use Sourcetree, TortoiseHg, Mercurial from the terminal, or any client you like to clone your Mercurial repository. These instructions show you how to clone your repository using Mercurial from the terminal.
$ hg clone https://username@bitbucket.org/teamsinspace/hg-documentation-tests$ hg clone ssh://hg@bitbucket.org/teamsinspace/hg-documentation-testsYou need a double // after hostname i.e.:
hg clone ssh://username@username.webfactional.com//path/to/projectname projectname