Mercurial转换扩展无法从远程Git存储库中提取

问题描述 投票:4回答:1

我正在尝试做一个'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

有任何想法吗?

git mercurial
1个回答
4
投票

如果我相信issue 1246,你需要为hg convert扩展安装git才能工作。

即使安装了Git,您可能会遇到导入的其他一些问题,在这种情况下,您可以考虑其他替代方案,例如:

  • 将git repo转换为svn,然后将该svn repo导入mercurial repo
  • 或尝试hg-git mercurial插件,具体提到:

这个插件完全用Python实现 - 没有Git二进制依赖项,你不需要在你的系统上安装Git。

(但我不知道hg-git是否适用于最近的1.7+ Mercurial版本)

© www.soinside.com 2019 - 2024. All rights reserved.