【问题标题】:How to migrate Mercurial hg repo to GitHub using online import engine如何使用在线导入引擎将 Mercurial hg 存储库迁移到 GitHub
【发布时间】:2020-04-07 20:13:48
【问题描述】:

我正在尝试使用在线(官方)GitHub 导入引擎将此 Mercurial repo http://hg.code.sf.net/p/amide/code/ 迁移到 GitHub。但是,我收到以下错误:

No source repositories were detected at http://hg.code.sf.net/p/amide/code. Please check the URL and try again. 

知道我做错了什么吗?

重现步骤:

【问题讨论】:

  • 它会在错误消息中为您提供页面上没有源代码的原因,如果您查看页面,则没有源代码只是提交列表。您必须阅读 GitHub 引擎信息它到底需要什么 - 为了帮助您,我们需要逐步描述您所做的事情。
  • 我已经编辑了帖子,现在添加了步骤。谢谢。

标签: github mercurial migrate


【解决方案1】:

显然,GitHub 在线导入器与某些 Mercurial 存储库服务器不兼容。

相反,必须使用命令行,请参阅: https://help.github.com/en/github/importing-your-projects-to-github/source-code-migration-tools#importing-from-mercurial

我使用了来自这个存储库的不错的转换脚本:https://github.com/frej/fast-export

并且能够将 repo 干净地转换为 https://github.com/ferdymercury/amide

【讨论】:

  • 啊,你是直接使用 Github 导入器。那只针对git,自然不能import mercurial。
  • 不正确。我已经尝试在其他服务器上使用其他一些 mercurial 存储库,并且它可以通过在线导入器很好地导入。如果您单击支持的 VCS,他们会在 github.com/new/import 中特别说明以下内容:“支持的版本控制:我们支持从 Git、Subversion、Mercurial 和 TFS 导入存储库。这里是一些示例 url。example.com/svn example.com/hg tfs.example.com/tfs
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-14
  • 1970-01-01
  • 2020-04-24
  • 2020-01-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多