Cloning github repo with hggit

谁说胖子不能爱 提交于 2019-12-04 23:40:49
mr.andy.peters

Here is a thought, maybe its not fully installed. I have had similar problems and found compiling it manually instead of using 'easy_install' to work better. I had problems where the version of 'dulwhich' wasn't installed properly, so things were broken (probably similarly to yours).

I outlined the installation process here on my blog -> http://andypeters.org/post/5607486048/hg-git-installation-woes-on-a-mac

Here is a quick summary for installation.

  1. Download. I have been using 0.7.
  2. Install dulwich. Notice the use of --pure. I'm not 100% sure what that means, but my understanding is that it is a python thing to make a different/clean install of it.

    > sudo python setup.py --pure install
    
  3. Download hg-git. I have linked to bitbucket because i assume you have mercurial working.

  4. Install hg-git

    > sudo python setup.py install
    

Hope that helps.

On a Debian-based GNU/Linux distribution, in addition to

$ sudo apt-get install mercurial-git

I had to add the following lines to my ~/.hgrc file:

[extensions]
hggit = /usr/share/pyshared/hgext/git
clement.igonet

my config on ubuntu 14.04 (cf /usr/share/doc/mercurial-git/README.Debian from package mercurial-git):

[extensions]
hgext.bookmarks =
hgext.git = 

The file to add this is : ~/.hgrc

To enable hg-git (note the '-') in mercurial, you need something like:

[extensions]
hg-git=e:\hg-extensions\hg-git\hggit
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!