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

发布于 2024-10-15 22:51:36 字数 524 浏览 11 评论 0原文

我正在尝试执行“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的笑 2024-10-22 22:51:36

如果我相信问题 1246,您需要安装 git hg Convert 扩展程序可正常工作。

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

  • 将 git 存储库转换为 svn 存储库,然后将该 svn 存储库导入到 Mercurial 存储库中
  • ,或者尝试使用 hg-git Mercurial 插件,其中特别提到:

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

(但我不知道 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:

  • 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文