rtcTo / rtc2gitcli

An IBM's RTC SCM tool extension to migrate an RTC repository into a Git repository
https://rtc.to
MIT License
28 stars 34 forks source link

How to prepare the SRC and DST workspaces? #30

Closed verhasi closed 7 years ago

verhasi commented 7 years ago

It is not clear for me how to prepare the SRC and DST workspaces for the migration. As I run the tool it finds no changeset at all even the stream has a lot.

"TOTAL NUMBER OF CHANGESETS [0]"

In the SRC workspace I set the components to the first baseline and the flow to the stream, in the DST workspace I set the flow to SRC. I tried also with or without the components in the DST but the same result.

Regards, Istvan

fbuehlmann commented 7 years ago

For SRC workspace add all components with initial baselines and set the stream target to DST workspace. On the DST workspace add all components from stream that should be migrated. The tool then try to bring the SRC workspace to the same level as the DST workspace by accepting each changeset step by step. At at later time you can accept all changes from stream to DST workspace and start an incremental migration

verhasi commented 7 years ago

Hi Florian,

Thank you for the response. Still not success. Actually if I set the Flow target in src to dst image i got NPE at line MigrateTo.java:226

IWorkspaceHandle sourceStreamHandle = (IWorkspaceHandle) (sourceWsConnection.getFlowTable()
                    .getCurrentAcceptFlow().getFlowNode());

If in the dst workspace set the flow target to src then got he zero number of changesets.

fbuehlmann commented 7 years ago

Set stream target from SRC to DST and set the Stream Target to current and default.

verhasi commented 7 years ago

I applied the following image but still zero number of changeset :(

fbuehlmann commented 7 years ago

Create a SRC workspace that follow the stream you like to migrate. Check that the SRC workspace has the latest changes accepted from the stream. Now create the DST workspace that contains all components from the stream but with the initial baseline. Now set the flow target from the DST to the SRC and set it as default and current.

Attached two screenshots from my environment: image

image

verhasi commented 7 years ago

Thank you for the detailed instructions. In this way it started to work. On your screenshot in the DST workspace I see the latest changes but I applied the baseline. I just mention if someone else is coming do follow the instructions of text and not the screenshot.

rambaliga commented 4 years ago

Had I seen these comments before, I would have saved 2 weeks of trial and error that I did to understand this utility. Can the instructions not be updated? Would save lot of time.