从CVS转换为SVN到Hg,'hg convert'是否需要指向SVN结账或仅仅是回购?

时间:2010-04-21 20:09:22

标签: svn mercurial cvs cvs2svn

作为将完整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 Distributed SCM(版本1.4.3) 如果相信安装中的library.zip,那么这个版本的Mercurial似乎有一些svn绑定。

我是否需要进行结帐并将hg转换为它以使其正常工作?

1 个答案:

答案 0 :(得分:2)

答案是否定的。

应该运行的命令是:

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

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