1

We are planing to migration our projects version controlled by clear case into SVN. And I have tried the SVNImporter which is provided by polarion. Its ok for small vob migration. But when the vob is larger (200mb), I will get the heap out of memory error (I have set the -Xmx = 1024m ), and it is slow to do that process.

Any one has some experience on CC to SVN migration and known some other open source tools which will work for large clearcase vobs? Or any suggestion/best practice can share with will be much appreciated.

Update: we need the history of files, branch, tag on clear case

Kuku
  • 484
  • 8
  • 28
  • you can migrate one by one directory instead of everything in one go. – Ved Jul 09 '14 at 07:06
  • @Ved there may be handreds of directories inside of our clear case view directory. – Kuku Jul 09 '14 at 07:27
  • 1
    You have to take immediate directory not all the child nodes. This is some what similar to what is written in answer. – Ved Jul 09 '14 at 07:29

2 Answers2

1

The only workaround would be to try and make the import incremental wuith the SVNImporter.

For instance, import only a part of the cc2svn dumped vob (by top sub-folders, which is useful if those folders represents a component): one svn repo per component can be easier to manage (and import) than a giant svn repo.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • did you mean when I run the svnimporter, do not specify the top clear case directory in the configuration file as the source, specify the sub directory one by one? – Kuku Jul 09 '14 at 07:22
  • @user1311839 yes, because I don't remember if if you can do this on the cc2svn side, meaning dumping only part of a ClearCase Vob. – VonC Jul 09 '14 at 07:23
  • I'll give it a try. Btw is there any other open source tools you know about which might be better? – Kuku Jul 09 '14 at 07:36
  • @user1311839 not to my knowledge, no. I usually don't migrate the full history, and keep the ClearCase vob around for read-only access. – VonC Jul 09 '14 at 07:37
  • so the best practice is keep the history and data still in the clear case, checkout the latest version in clear case and check into SVN ? – Kuku Jul 09 '14 at 09:31
  • @user1311839 yes, it is the most convenient one at least. – VonC Jul 09 '14 at 09:39
  • I forgot to ask after I migration one folder by one. How can I merge then together? – Kuku Jul 21 '14 at 22:00
  • @user1311839 If you are using ClearCase UCM, you would make a project in which you add all the UCM components you have created from the imported SVN folders. – VonC Jul 22 '14 at 05:19
  • Hi VonC, we don't use this UCM feature.In this case, what should I do? – Kuku Jul 22 '14 at 07:34
  • @user1311839 simply use a config spec which select the right versions for the different folders of your Vobs. – VonC Jul 22 '14 at 08:22
0

Try this one https://github.com/ghusse/cc2svn

I did Migrated Huge repo size ~150 GB to SVN using the above tool. It will migrate with history but you will get only the modified files on that particular branch. So here what i did.

  1. Migrated the branches to svn with history (got only modified files).
  2. Now, take a full source of the whole branch in Clearcase
  3. Checkout the Migrated branch in SVN and Overwrite the Sources from Clearcase.

Now, in point 3 --> You will get a base sources apart from modified files, but the revision will be one more for base source (should be fine in my case, since i will commit saying that its a base source during commit).

John
  • 89
  • 1
  • 10