We have a new way after doing some brain storms. This way still is not a perfect solution, but it's much better than previous trial.
- Use clearexport_ccase to export the source folder to intermittent data. See documentation of Clearcase admin.
- Create a temporary vob for importing the data later. See example.
- Import the data into temporary vob. See example.
- Repeat step 1 to 3 for importing all necessary data into temporary vob.
- Use the SVN Importer to import the temporary vob as Subversion repository.
- Last steps refer to a documentation of succeeded migration case of one of Eclipse project from Subversion to Git.
The flaw of this way is that the removed elements in Clearcase(said using Main/LATEST as cspec of Clearcase vob when exporting) would lose after importing into a temporary vob. So switching to a maintenance branch or tag like 1.0/2.0 in Git, the source code is incomplete. The files existed in that branch or tag, then removed in latest code base are lost. The workaround could be manually checking in GA version to have complete code.
If anybody have graceful and perfect solution to migrate Clearcase to Git, I think he could start a new business. :)
No comments:
Post a Comment