It's all about the answers!

Ask a question

RTC SCM to GIT Migration


Kiran Ananth (315) | asked Mar 09, 1:35 a.m.

Hi Team, 


Is it possible to migrate Source Code from RTC SCM to GIT migration? Is there any tool available to do this migration?

Regards,
Kiran

3 answers



permanent link
Kiran Ananth (315) | answered Apr 17, 1:42 a.m.

Hi, 


RTC to GIT migration, how about baselines work? How the baseline visible from rtc to git after migration?


permanent link
Georg Kellner (80937090) | answered Mar 14, 9:46 a.m.
Hi Kiran,

regarding general considerations:
Check the space which is used by the RTC SCM. There are metrics reports in RTC, which show the size of the SCM data.
As git is a distributed VCS it'll copy the complete repository to each client including the complete history.
If your RTC SCM is huge, you should have a strategy to split the git repos while you are migrating.
One possibility is to have one git repo per RTC SCM component.
If those are to big at the beginning,  you should think about having one history repo and one current repo per component.
The history repo contains everything, while the current repo contains only the relevant baselines, which are still in use, has to be fixed in the case of bugs and where the current development takes place.

Greetings Georg.

permanent link
Andy Chen (812) | answered Mar 10, 10:24 p.m.

Hi Kiran,

There's no official tool to do SCM to GIT migration, but there is a 3rd party git repo that provides scripts for it:


Comments
Kiran Ananth commented Mar 11, 1:27 a.m.

Hi Andy, 


Thank you for the reply.

I gone through the link, and will it do the full migration along with history?
 


Andy Chen commented Mar 11, 1:40 a.m.

From the "How It Works" section in the github page, the script will do a full migration of the targeted RTC repositories.

For the history, it will create an empty git repository and load the oldest baseline from RTC. Afterwards it will go through each baseline and commit differences to git, thus replicating the history of the RTC workspace.


Alternatively, the wiki provides a way of using the full component history from RTC as well

https://github.com/rtcTo/rtc2git/wiki/Getting-your-History-Files


Kiran Ananth commented Mar 13, 1:58 a.m.

 Andy, 


Have you done this migration? 
Before migration what are all things I have to consider like backup procedure, things to handle for the migration activity and any configuration/modification in the rtc2gitcli?


Andy Chen commented Mar 13, 2:13 a.m.
Hi,

Unfortunately I have not done this migration with the latest versions of RTC but since the RTC SCM output, there shouldn't be much differences.

There isn't a need to do specific backup procedures on the RTC end as the tool does not affect RTC SCM, it only collects baseline data from it to create the Git repo.

For configuration, their wiki has a section for it:

For more in depth details on this tool, you may want to consult the actual developers on their slack.

Kiran Ananth commented Mar 13, 3:17 a.m.

Andy, 


I am using 5x version of CLM and migration activity is from 5x RTC SCM to GIT. 

Your answer


Register or to post your answer.