Error cloning repository on a linux server concerning with tortoiseHg

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


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

export PYTHONPATH=/local/admin/mercurial/lib/python/
export PATH=/local/admin/outils:/local/admin/mercurial/bin:/local/admin/mercurial/contrib/:$PATH

gaunets at vancouver:~$ which hg
/local/admin/mercurial/bin/hg
gaunets at vancouver:~$ cat .hgrc
[ui]
### show changed files and be a bit more verbose if True
#verbose = True
### username data to appear in comits
### it usually takes the form: Joe User <joe.user at host.com>
archivemeta = false
username=S_Gaunet

[hooks]
pretxncommit =
tag =
#pretag = /local/admin/outils/pretag.sh

[extensions]
largefiles =


Which files do I have to update with my environment variables ?

Thanks a lot


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

On 12/15/2011 10:46 AM, Gaunet Sylvain (ASTEK) wrote:
> I'm trying to use tortoise Hg. I just want to clone a repository from a
> linux server to my personal windows computer. On the Linux, Mercurial
> isn't installed in /usr/bin . but in a folder which is
> /local/admin/mercurial/ :
> 
> root at vancouver:~#  ll /local/admin/mercurial/
> total 12
> drwxr-xr-x 2 gaunets_adm sgcadm 4096 2011-12-09 13:03 bin
> drwxr-xr-x 8 gaunets_adm sgcadm 4096 2011-12-09 13:02 contrib
> drwxr-xr-x 3 gaunets_adm sgcadm 4096 2011-12-09 13:03 lib
> 
> Every configuration on the Linux is ok and extensions works well :
> 
> root at vancouver:~# tail /etc/profile
> .
> 
> export PYTHONPATH=/local/admin/mercurial/lib/python/
> export
> PATH=/local/admin/outils:/local/admin/mercurial/bin:/local/admin/mercurial/contrib/:$PATH
> source /local/admin/mercurial/contrib/bash_completion   # completion
> mercurial
> 
> But when I want to clone from tortoise on my windows, I've got this error :
> 
> % hg clone --verbose --
> ssh://gaunets@XXX.XXX.XXX.XXX:/home/gaunets/DEV/DDC_GEN/.hg .

The .hg directory contains the repository *storage*; the repository itself is
located one directory up (that is, the directory _containing_ .hg). So try
dropping that trailing .hg from the path.

> running ""TortoisePlink.exe" -ssh -2 gaunets at XXX.XXX.XXX.XXX "hg -R
> home/gaunets/DEV/DDC_GEN/.hg serve --stdio""
> remote: *** failed to import extension progress: No module named progress
> remote: *** failed to import extension hgext.graphlog from
> /local/admin/mercurial/lib/python/hgext/graphlog.py: 'module' object has
> no attribute 'command'
> remote: *** failed to import extension largefiles: No module named
> largefiles
> remote: abort: There is no Mercurial repository here (.hg not found)!

Do you have more than one hg version on your server? This looks like an old
Mercurial trying to load recent extensions. Try:

TortoisePlink.exe gaunets at XXX.XXX.XXX.XXX hg version

and see if you get what you expect.

Regards,
Wagner

> No error concerning the .hg :
> 
> root at vancouver:~# ll /home/gaunets/DEV/DDC_GEN/.hg
> total 60
> -rw-rw---- 1 gaunets sgc   57 2010-03-29 19:32 00changelog.i
> -rw-rw---- 1 gaunets sgc    8 2011-08-03 16:43 branch
> .
> 
> What configuration I missed ?
> 


More information about the Mercurial mailing list