从 CVS 转换为 SVN 转换为 Hg,“hg 转换”是否有效?需要指向 SVN 结帐还是只是一个存储库?

发布于 2024-08-29 13:44:48 字数 1683 浏览 13 评论 0原文

作为将完整 CVS 历史记录迁移到 Hg 的一部分,我使用 cvs2svn 在本地目录中创建 SVN 存储库。它的第一级目录结构是:

2010-04-21  09:39 AM    <DIR>          .
2010-04-21  09:39 AM    <DIR>          ..
2010-04-21  09:39 AM    <DIR>          locks
2010-04-21  09:39 AM    <DIR>          hooks
2010-04-21  09:39 AM    <DIR>          conf
2010-04-21  09:39 AM               229 README.txt
2010-04-21  11:45 AM    <DIR>          db
2010-04-21  09:39 AM                 2 format
              2 File(s)            231 bytes

设置 hg 和转换扩展并尝试转换后,我在转换时得到以下信息:

C:\>hg convert file://localhost/Users/terry/Desktop/repoSVN
assuming destination repoSVN-hg
initializing destination repoSVN-hg repository
file://localhost/Users/terry/Desktop/repoSVN does not look like a CVS checkout
file://localhost/Users/terry/Desktop/repoSVN does not look like a Git repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a Subversion repo
file://localhost/Users/terry/Desktop/repoSVN is not a local Mercurial repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a darcs repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a monotone repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a GNU Arch repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a Bazaar repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a P4 repo
abort: file://localhost/Users/terry/Desktop/repoSVN: missing or unsupported repository

我安装了 TortoiseHg。有关信息,hg 版本报告: Mercurial 分布式 SCM(版本 1.4.3) 如果安装中的library.zip可信的话,这个版本的Mercurial似乎有一些svn绑定。

我是否需要进行结帐并将 hg 点转换为它才能正常工作?

As part of migrating full CVS history to Hg, I've used cvs2svn to create an SVN repo in a local directory. It's first level directory structure is:

2010-04-21  09:39 AM    <DIR>          .
2010-04-21  09:39 AM    <DIR>          ..
2010-04-21  09:39 AM    <DIR>          locks
2010-04-21  09:39 AM    <DIR>          hooks
2010-04-21  09:39 AM    <DIR>          conf
2010-04-21  09:39 AM               229 README.txt
2010-04-21  11:45 AM    <DIR>          db
2010-04-21  09:39 AM                 2 format
              2 File(s)            231 bytes

After setting up hg and the convert extension and attempting the convert, I get the following on convert:

C:\>hg convert file://localhost/Users/terry/Desktop/repoSVN
assuming destination repoSVN-hg
initializing destination repoSVN-hg repository
file://localhost/Users/terry/Desktop/repoSVN does not look like a CVS checkout
file://localhost/Users/terry/Desktop/repoSVN does not look like a Git repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a Subversion repo
file://localhost/Users/terry/Desktop/repoSVN is not a local Mercurial repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a darcs repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a monotone repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a GNU Arch repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a Bazaar repo
file://localhost/Users/terry/Desktop/repoSVN does not look like a P4 repo
abort: file://localhost/Users/terry/Desktop/repoSVN: missing or unsupported repository

I have TortoiseHg installed. For info, hg version reports:
Mercurial Distributed SCM (version 1.4.3)
This version of Mercurial seems to have some svn bindings if library.zip in the install is to be believed.

Do I need to do a checkout and point hg convert to it for this to work properly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

内心旳酸楚 2024-09-05 13:44:48

答案是否定的。

应该运行的命令是:

hg convert C:\Users\terry\Desktop\repoSVN

使用 TortoiseHg 命令行 hg 时,确实不需要 URL 样式路径。

The answer is no.

The command that should have been run was:

hg convert C:\Users\terry\Desktop\repoSVN

There is really no need for the URL style path when using the TortoiseHg command line hg.

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