开发者

Mercurial convert extension not able to pull from remote Git repository

I'm trying to do a 'hg convert', to pull from a Git repo into an Hg 开发者_开发技巧one.

Now, I don't have Git installed on my Windows 7 machine; is that necessary? I'm using the TortoiseHG commandline, and I have activated the convert extension ('hg help convert' works fine).

Here's an example of the command I'm trying to use:

hg convert -s git -d hg https://github.com/mysticbob/glm.git gittest

That's a public repo on Github, so I should be able to convert from it. And the address is what Github says one should use for getting. What I get is the following message:

initializing destination gittest repository
https://github.com/mysticbob/glm.git does not look like a Git repository

Any ideas?


If I believe issue 1246, you need to have git installed for the hg convert extension to work.

Even with Git installed, you might experience some other issues with the import, in which case you could consider other alternatives such as:

  • converting the git repo to a svn one, and then importing that svn repo into a mercurial one
  • or trying the hg-git mercurial plugin, which specifically mentions:

This plugin is implemented entirely in Python - there are no Git binary dependencies, you do not need to have Git installed on your system.

(But I don't know if hg-git works with recent 1.7+ Mercurial versions)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜