source file control cvs to svn conversion?

我只是一个虾纸丫 提交于 2019-12-22 18:38:49

问题


Hey guys. I currently use cvs to control all my source files but want to move away from cvs to svn. Could anyone give me some pointers? I have loads of projects but they are all similar therefore would like to just have the structure:

Trunk. /prj1,2,3, etc Branch. As above Tag. As above

I am going to be using the cvs2svn tool, have read the documentation but am still new to all of this. Can my projects all be converted with one command line instruction?

Am I right that before doing all this I have to set up an svn environment first?

Anyone with any tips would be helpful. Thanks


回答1:


Have you read the documentation at http://cvs2svn.tigris.org/cvs2svn.html?




回答2:


I think you need to learn the differences/similarities between cvs and svn. Here's a start: cvs-crossover-guide and svn for cvs users.

From there, things should probably get clearer. The cvs2svn tool itself lets you either directly create a svn repository, write to an existing repository or create a svn dump file, depending on the command line options. This is explained in the cvs2svn docs.




回答3:


If you want the projects to end up in a single SVN repository, then you have to do a multiproject conversion, which requires you to use the options file method to start the conversion. Make a copy of the cvs2svn-example.options file that came with the version of cvs2svn that you are using and edit that file as described in its comments. Then run

cvs2svn --options=FILENAME

You don't necessarily have to set up a Subversion repository first; cvs2svn can create it for you.




回答4:


No, you don't need to set up a SVN repository first. But if you already have one you can use it as the target. From the documentation:

-s PATH
--svnrepos PATH

Write the output of the conversion into a Subversion repository located at PATH.
This option causes a new Subversion repository to be created at PATH unless the
--existing-svnrepos option is also used.



回答5:


I've created a simple "idiot steps" to study and controld each pass of this process.

What is your OS ?

if you need a list of steps to do this, post a comment and I will share.



来源:https://stackoverflow.com/questions/1155197/source-file-control-cvs-to-svn-conversion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!