从CVS迁移到Mercurial:分离项目 [英] Migrate from CVS to Mercurial: Separating projects
本文介绍了从CVS迁移到Mercurial:分离项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们拥有一个具有多年开发历史的CVS存储库,并且在一个项目(CVS文件夹)下拥有3个项目.在Mercurial回购中,这些应该是不同的存储库.它们采用以下方案:
We have a CVS repository with years of development history and 3 projects under one project (CVS folder). Those should be different repositories in a Mercurial repo. They are in the following scheme:
项目
---子项目1
---子项目2
---子项目3
Project
---Sub Project 1
---Sub Project 2
---Sub Project 3
- 在cvs2hg流程中是否可以自动执行此操作?
- 如果没有,那么在保留历史记录的情况下(可能的话)将Mercurial分离每个子项目的过程是什么.
推荐答案
只需运行cvs2hg 3次,每次将其指向CVS存储库中的项目子目录即可;例如,
Simply run cvs2hg three times, each time pointing it at a project subdirectory within your CVS repository; e.g.,
cvs2hg [OTHER-OPTIONS...] $CVSROOT/Project/SubProject1
将结果写入三个独立的Mercurial存储库.
Write the results into three separate Mercurial repositories.
这篇关于从CVS迁移到Mercurial:分离项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文