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

Migration command was successful but cant see any changesets. #58

Closed AnupKSeth closed 4 years ago

AnupKSeth commented 5 years ago

Hi,

I have used the migration command as below.

scm migrate-to-git -r -u -P -m

The command is executing successfully now with no error, however, it is not showing any baselines or changesets. We have multiple changesets and baselines.

Things I have done.

Before using this command, I have created a source workspace and target workspace.

source_ws

target_ws

after this I have loaded initial target workspace with below command.

scm load -r -u -P

Attaching the screen shot of actual migration.

I had run migration command twice.

  1. In first attempt, below line is commented in "migration.properties"

    rtc.baseline.include=^(.*)$

migration1

  1. I re run the command with the below line not commented in second attempt. rtc.baseline.include=^(.*)$

migration2

Attaching final folder structure screen shot.

image

In this folder I can not see any code or projects or components. So the command is not showing any error but don't know if migration was successful.

am I missing any steps ?

WtfJoke commented 5 years ago

Hi @AnupKSeth

I dont see any issues at your point to be honest. Workspace setup looks correct. If you load target workspace and open it in eclipse, are there any incoming changesets?

dibehara commented 5 years ago

I too face the exact same issue as reported by @AnupKSeth. I am not able to find the changesets being captured anywhere and the migration log says that the migration is completed. There is nowhere in the log that I could find the logs wrt to the changesets. Migration is in just 63 seconds.

AnupKSeth commented 5 years ago

Hi @AnupKSeth

I dont see any issues at your point to be honest. Workspace setup looks correct. If you load target workspace and open it in eclipse, are there any incoming changesets?

Hi,

I have opened the target workspace in eclipse and below is the screen shots of the workspace. Target workspace is "TW1" and source workspace is "SW1".

image

image

what do I have to do next ? do we need to load all the code into the "TW1" and then push that to GIT ? please help what needs to be done further as we do not see any code in "TW1".

dibehara commented 5 years ago

Also, Can you provide some more clarity on these steps:

1) step into the target directory.

WtfJoke commented 5 years ago
  1. step into the target directory.

It means step into any directory, where you want to have the migration takes place.

This is because, some of the packages are being used from the Plugin dependencies jars. Request you to please help.

If you followed the readme, you should have a green workspace and should be able to build the project. If in doubt you can also try to follow this wiki-entry

WtfJoke commented 5 years ago

what do I have to do next ? do we need to load all the code into the "TW1" and then push that to GIT ? please help what needs to be done further as we do not see any code in "TW1".

What happens if you accept one of these components (for example build_commons)? If it loads only the initial state of that component (and afterwards there are incoming changesets), then you should probably do that on each component and retry.

TBH im not really familiar with rtc2gitcli issues (I have built rtc2git only).

Keen to know, how it works out.

AnupKSeth commented 5 years ago

what do I have to do next ? do we need to load all the code into the "TW1" and then push that to GIT ? please help what needs to be done further as we do not see any code in "TW1".

What happens if you accept one of these components (for example build_commons)? If it loads only the initial state of that component (and afterwards there are incoming changesets), then you should probably do that on each component and retry.

TBH im not really familiar with rtc2gitcli issues (I have built rtc2git only).

Keen to know, how it works out.

After migration command is successful, i get below folder structure.

image

Now since I want to migrate my code from RTC to GIT, I do not see any projects that exists in my components in this target workspace. So i guess I need to load all the projects from all the components in my TW1 and then add those projects to staging area and then push it to my remote repository .

Is my understanding correct ?

WtfJoke commented 5 years ago

The folder structure is just an empty git repo.

The procedure includes loading the initial workspace (in your case TW1). Either at that point there should be already projects listed or at least during the first changeset.

I would guess that you need to load all the projects and make that initial commit and afterwards proceed with the migration command

smartarix commented 4 years ago

I'm still struggling a bit to run this, Where should I pass git url ? I looked into migration.properties file but didn't saw any property for git repo uri. any help is appreciated.

WtfJoke commented 4 years ago

Hi @smartarix You dont need to pass a git url. It creates a local git repo. You can then distribute this like any other local git repo by adding a git remote and push it to a git server like github.

WtfJoke commented 4 years ago

Will close this issue, since I havent got any answer. @smartarix please open a new issue if you experience any problems with migration.