Error cloning repository on a linux server concerning with tortoiseHg

Wagner Bruna wagner.bruna+mercurial at gmail.com
Thu Dec 15 07:58:08 CST 2011


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