"hg-git" and "hgsubversion" extensions

Dr Rainer Woitok rainer.woitok at gmail.com
Wed Dec 18 18:08:32 UTC 2019


Greetings,

running on Gentoo I have just downloaded the packages containing the ex-
tensions "hg-git" and "hgsubversion".  But up to now I failed setting up
the "[extensions]" section in my ".hgrc" file correctly.

Gentoo installed the extensions in "/usr/lib64/python2.7/site-packages/"
as directories  "hggit/"  and "hgsubversion/",  respectively.   Assuming
this already is in Python's search path I just specified

   hggit =
   hgsubversion =

but this didn't work.   According to the man page  the alternative is to
specify the full path to the extension, including the ".py" suffix.  But
which of the plethora of "*.py" files is the correct one?  I tried

   /usr/lib64/python2.7/site-packages/hggit/__init__.py

and the corresponding file for "hgsubversion" but it didn't work:

   $ hg st
   *** failed to import extension hggit from /usr/lib64/python2.7/site-packages/hggit/__init__.py: No module named 'gitrepo'
   *** failed to import extension hgsubversion from /usr/lib64/python2.7/site-packages/hgsubversion/__init__.py: No module named 'svncommands'
   M .hgrc
   $

Do I have to set "PYTHONPATH"?  To which value exactly?

What am I missing?

Sincerely,
  Rainer


More information about the Mercurial mailing list