How do I correctly install dulwich to get hg-git working on Windows?

后端 未结 10 2140
执念已碎
执念已碎 2021-01-31 01:35

I\'m trying to use the hg-git Mercurial extension on Windows (Windows 7 64-bit, to be specific). I have Mercurial and Git installed. I have Python 2.5 (32-bit) installed.

<
10条回答
  •  独厮守ぢ
    2021-01-31 02:21

    Try following configuration (change to your path), which works for me:

    [extensions]
    ; hg-git extention
    hgext.bookmarks =
    hggit = C:\Python26\Lib\site-packages\hg_git-0.2.1-py2.6.egg\hggit
    

    In my case when I have empty value for hggit =, I get the same error as you do in this case. But I can import dulwich without problem in python shell, so you should check your easy-install.pth (as pointed out by David) if it contains dulwich-0.5.0-py2.5.egg. I did install pure version of dulwich as well.

提交回复
热议问题