schacon / hg-git

mercurial to git bridge, pushed to directly from the hg-git plugin in Hg
GNU General Public License v2.0
621 stars 71 forks source link

Simple install how-to? #313

Open dogweather opened 9 years ago

dogweather commented 9 years ago

I'd really like to see an installation guide for a non-python developer.

The Readme and the website both seem to contain outdated information (e.g. use easy_install) and rely on Python packaging knowledge. I've done a lot of Python development, but I couldn't get my setup working, always hitting errors like this:

*** failed to import extension hggit: No module named hggit

I think my use case is very common: I develop with a Mac, and I have Hg, Python 2 and 3 installed via Homebrew.

What exact steps should I now take?

phpdave11 commented 7 years ago

I also ran into this problem on Mac OS.

Here's how I solved it:

easy_install 'dulwich>=0.8.0'
cd ~/code
hg clone ssh://hg@bitbucket.org/durin42/hg-git

Then I added this to my ~/.hgrc file:

[extensions]
hgext.bookmarks =
hggit = ~/code/hg-git/hggit