Error cloning repository on a linux server concerning with tortoiseHg

Wagner Bruna wagner.bruna+mercurial at gmail.com
Thu Dec 15 15:30:53 UTC 2011


On 12/15/2011 01:02 PM, Gaunet Sylvain (ASTEK) wrote:
> Yes, I dropped the .hg but I already have the error. I tried many things.
> 
> You're right, there is an old hg installed, 1.3 in /usr/bin ... (sorry,
> what I said was half wrong :s, I thought I had removed it). I removed it now and :
> 
> C:\Users\sgaunet>TortoisePlink.exe gaunets at XXX.XXX.XXX.XXX hg version
> bash: hg: command not found
> 
> Although, I update /etc/profile and $HOME/.bashrc with the good environment
> variables :
> 
> gaunets at vancouver:~$ tail .bashrc
> # enable programmable completion features (you don't need to enable
> # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
> # sources /etc/bash.bashrc).
> if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
>     . /etc/bash_completion
> fi
> (...)
> 
> Which files do I have to update with my environment variables ?

There's an explanation, and possible solutions on

http://mercurial.selenic.com/wiki/FAQ/CommonProblems

Alternatively you could place a symlink to your hg binary somewhere on your
default PATH; I believe /usr/local/bin would work fine on most distributions
(avoid placing it on /usr/bin, since package management could conflict with
it). Hum, this sould also be on the wiki...

Hope that helps,
Wagner



More information about the Mercurial mailing list