Tag: hg git

如何正确安装dulwich来获得hg-git在Windows上的工作?

我试图在Windows上使用hg-git Mercurial扩展(Windows 7 64位,具体)。 我安装了Mercurial和Git。 我有Python 2.5(32位)安装。 我按照http://hg-git.github.com/上的说明安装扩展。 最初的easy_install失败了,因为无法在没有Visual Studio 2003的情况下编译dulwich。 我手动安装dulwich: git clone git://git.samba.org/jelmer/dulwich.git cd德威 c:\ Python25 \ python setup.py –pure install 现在,当我运行easy_install hg-git时,它成功了(因为dulwich依赖性得到满足)。 在我的C:\用户\用户名\ Mercurial.ini,我有: [extensions] hgext.bookmarks = hggit = 当我在命令提示符下键入'hg'时,我看到:“***未能导入扩展名hggit:没有名为hggit的模块” 看看我的c:\ Python25文件夹,我看到的唯一参考hggit是Lib\site-packages\hg_git-0.2.1-py2.5.egg 。 这应该是提取的地方,或者它应该工作吗? 由于失败了,我尝试了gg-git页面的“更多参与”指令,提示克隆git://github.com/schacon/hg-git.git并在我的Mercurialconfiguration中引用该path。 我克隆了回购,并更改我的扩展文件,如下所示: [extensions] hgext.bookmarks = hggit = c:\code\hg-git\hggit 现在当我运行hg时,我看到:***无法从c:\ code \ hg-git \ hggit中导入扩展名hggit:没有名为dulwich.errors的模块。 好的,所以这个告诉我现在find了hggit,因为我可以在hg-git \ hggit \ […]