从 CVS 转换为 SVN 转换为 Hg,“hg 转换”是否有效?需要指向 SVN 结帐还是只是一个存储库?
作为将完整 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案是否定的。
应该运行的命令是:
使用 TortoiseHg 命令行 hg 时,确实不需要 URL 样式路径。
The answer is no.
The command that should have been run was:
There is really no need for the URL style path when using the TortoiseHg command line hg.