2010-10-25 14:11:45 |
William Gallafent |
description |
Binary package hint: mercurial-git
After installing mercurial-git, I receive the error “*** failed to import extension hggit: No module named hggit” when trying to clone a git repository with “hg clone git://gitorious.org/…”. I added the following lines to my ~/.hgrc, as suggested by http://hg-git.github.com/ … but this does not allow hggit extension to work.
[extensions]
hgext.bookmarks =
hggit =
I assume that the easy_install process mentioned there does something in addition to “just installing” hggit. In order to make the extension work, one must first find out, and then explicitly enter the path:
hggit = /usr/share/pyshared/hgext/git
This is very non-obvious, and for me required a “dpkg-query -L mercurial-git” just in order to find the location of its files, and then to guess that this was the right folder to add!
Perhaps this path should be added to the global mercuial config in /etc/mercurial in order to allow the extension to work out-of-the-box? Or is there a better solution?
Other info:
Output of “lsb_release -rd”:
Description: Ubuntu 10.10
Release: 10.10
Output of “apt-cache policy mercurial-git”:
mercurial-git:
Installed: 0.2.3-1
Candidate: 0.2.3-1
Version table:
*** 0.2.3-1 0
500 http://archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
100 /var/lib/dpkg/status |
Binary package hint: mercurial-git
After installing mercurial-git, I receive the error “*** failed to import extension hggit: No module named hggit” when trying to clone a git repository with “hg clone git://gitorious.org/…”. I added the following lines to my ~/.hgrc, as suggested by http://hg-git.github.com/ … but this does not allow hggit extension to work.
[extensions]
hgext.bookmarks =
hggit =
I assume that the easy_install process mentioned there does something in addition to “just installing” hggit. In order to make the extension work, one must first find out, and then explicitly enter the path:
hggit = /usr/share/pyshared/hgext/git
This is very non-obvious, and for me required a “dpkg-query -L mercurial-git” just in order to find the location of its files, and then to guess that this was the right folder to add!
Perhaps this path should be added to the global mercurial config in /etc/mercurial in order to allow the extension to work out-of-the-box? Or is there a better solution?
Other info:
Output of “lsb_release -rd”:
Description: Ubuntu 10.10
Release: 10.10
Output of “apt-cache policy mercurial-git”:
mercurial-git:
Installed: 0.2.3-1
Candidate: 0.2.3-1
Version table:
*** 0.2.3-1 0
500 http://archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
100 /var/lib/dpkg/status
|
|