Mercurial 转换扩展无法从远程 Git 存储库中提取
我正在尝试执行“hg Convert
”,以将 Git 存储库拉入 Hg 存储库。
现在,我的 Windows 7 机器上没有安装 Git;有必要吗?我正在使用 TortoiseHG 命令行,并且已激活转换扩展(“hg help Convert
”工作正常)。
这是我尝试使用的命令的示例:
hg convert -s git -d hg https://github.com/mysticbob/glm.git gittest
这是 Github 上的公共存储库,因此我应该能够从中进行转换。这个地址就是 Github 所说的应该用来获取的地址。我收到的是以下消息:
initializing destination gittest repository
https://github.com/mysticbob/glm.git does not look like a 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我相信问题 1246,您需要安装 git
hg Convert
扩展程序可正常工作。即使安装了 Git,您也可能会遇到一些其他导入问题,在这种情况下,您可以考虑其他替代方案,例如:
hg-git
Mercurial 插件,其中特别提到:(但我不知道
hg-git
是否适用于最近的 1.7+ Mercurial 版本)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:
hg-git
mercurial plugin, which specifically mentions:(But I don't know if
hg-git
works with recent 1.7+ Mercurial versions)