Path to hggit extension not automatically added, and not obvious
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hg-git (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug 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
[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/
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://
100 /var/lib/
description: | updated |
* William Gallafent <email address hidden>, 2010-10-25, 14:07: pyshared/ hgext/git
>In order to make the extension work, one must first find out, and then
>explicitly enter the path:
>
>hggit = /usr/share/
>
>This is very non-obvious,
Apart from being non-obvious, it's also wrong (i.e., it'll almost
certainly break at some point of the future).
FYI, how to enable the extension properly is explained in README.Debian.
--
Jakub Wilk