We have a planing to migrate the clearcase repositories to Bitbucket. I have been googling to find if i can get any utility or script that will do the migration job.
It would be of great help, if someone can help me to find the utility or script or the steps to the migration from CC to GIT? appreciate your help.
I am able to do the migration in two phases, ie; CC to SVN and from SVN to GIT. But using this method, i am not able to get the details of the user removed files and their history. Because it takes the history the view whatever the config spec that we set it initially.
Thanks
Ramesh
Community moderators have prevented the ability to post new answers.
Where you able to get it working?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Vishnu,
I have gone through that but the problem is that, its becomes cumbersome to parse the tree to find where the files are removed and to bring them. Our repository is years old and it has too many deleted/invisible files in the repository. Can you share if you have any utility or script to achieve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have done migrations between ClearCase and Git before and every time we decided that it is better to just do a clean cut, basically take the latest code from ClearCase and migrate that over to Git. The reason has always come down to the cost you spend on traversing ClearCase for all elements compared to keeping a handful of licenses for ClearCase around in order to allow users to go back in history. And by importing just the latest code base, you can reorganize the code as well.
To answer your question regarding when files where removed, you will have to check each version of the directory to see if an element was removed. You could either use cleartool describe, if the user kept the generated checkin comment, or use cleartool lshistory to see if a element was removed. This IBM tech note should give you a start on using lshistory to find deleted elements, http://www-01.ibm.com/support/docview.wss?uid=swg21245108
But again, I would consider the pros and cons of leaving the old code in ClearCase vs migrating it all over to Git,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikael,
Could you please tell me how you migrate data from Clearcase to Git?
Is this the same approach of CC to SVN and SVN to Git? Or ou have done it with any other approach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@shubham agarwal the migrations I have done I just created a view that selected the latest code base we where working on, applied a label and then just used copy/paste it all into the Git repository. You could do the same if you decide to bring over, lets say the last five releases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.