Error cloning repository on a linux server concerning with tortoiseHg

Gaunet Sylvain (ASTEK) Sylvain.Gaunet at cnes.fr
Thu Dec 15 09:44:19 CST 2011


That's ok, works fine with a symlink in /usr/local/bin :)

Thanks a lot.


-----Message d'origine-----
De : Wagner Bruna [mailto:wagner.bruna+mercurial at gmail.com] 
Envoyé : jeudi 15 décembre 2011 16:31
À : Gaunet Sylvain (ASTEK)
Cc : mercurial at selenic.com
Objet : Re: Error cloning repository on a linux server concerning with tortoiseHg

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