-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can we migrate RTC 4.0.7 to GIT ? Is there any tool available? #102
Comments
Have you tried to execute the tool once? Do you experience any errors? |
I have tried this. It doesn't work. The lscm command in RTC 4 doesn't support "--accept-missing-changesets" for accept command. I've tried hacking that out, to no avail. |
Hello. I am using this tool with RTC4.0.7. I removed the --accept-missing-changesets, and it runs relatively fine. However, it's having trouble accepting changesets with the error: "Local file system is out of sync". I have done nothing but start the script and let it run. It'll just fail after about the 4th changeset. I tried removing all components but 1, to see if that would help, but it didn't. Any suggestions? |
Hmm, seem's that the RTC client does not recognize all file changes. Possibly there is a refresh command available for the RTC command line tool... Unfortunately our alternative migration implementation, written as a RTC extension does not support that old versions of RTC. :-( |
Yeah. I'll be looking a little more into the SCM tool and see if there's any way to force the acceptance of changesets. It's SO CLOSE to working, I only need it to be able to accept changesets, then I can move my history. I have also looked at the RTC extension. It's a shame it doesn't work for 4.0.7 😢 |
Have you tried to use the 5.0.x docker image to migrate with rtccli? |
Actions have been taken to migrate to version 5+, but because of our infrastructure it hasn't been possible to update, unfortunately. |
I mean use the 5.0.x client to migrate the 4.0.7 SCM content. |
Try @reinhapa suggestion. As alternative try you can try the following as well: |
@reinhapa I'm using the docker image to migrate a RTC 4.0.5. Unfortunately I am facing this error:
|
I have to check if I get the rtccli source compiled also under the version 4.0.x first - no promices.. |
Pushed docker images for 4.0.5 and 4.0.7 SCM clients with the rtc2gitcli extension. There are available here. I suggest to give those a try using the documentation from the rtc2git-docker README |
Nice, @reinhapa ! Just one question: The SOURCE_WORKSPACE and TARGET_WORKSPACE, should they both just be a workspace of the stream you wish to migrate to git, or should one of them be empty? EDIT: Never mind, think I figured it out by going to the rtc2gitcli README :) |
Maybe I did something wrong but it didn't work:
The commit history in RTC is huge but I got just this in git:
|
Maybe the documentation is a bit misleading. Source is basically the starting point of the migration, meaning that you have to setup a workspace, where you place to the first change ever made. The Target must be setup in such a way, that it follows the Source workspace. After having set that up, you have to load the initial state of the Target workspace using FIRST:
Then you start the actual migration with:
|
So far thank you very much for the support @reinhapa! I understood what you said, so I set the workspaces up as you explained but now I'm facing this problem:
The component has two baselines, one referencing to the initial state and another one to the actual state. |
I fixed that ArrayIndexOutOfBoundsException when running migrate-to-git in the meantime. You should be able to pull the latest 4.0.7 docker image, that contains the fix. |
Hi, we use version 4.0.3 of RTC here. The python script did not work since few commands are not supported on the scm tools 4.0.3. Is there an easy way we can migrate our code from version 4.0.3. Is compiling the rtc2gitcli with version 4.0.3 will work ? Is the migration script support streams that have more than one components ? |
Do you know which commands?
Maybe. Probably @reinhapa or someone else from the team can help you.
Yes, both rtc2git and rtc2gitcli supports stream that have more than one component |
@z9944x at the moment I did not tested the |
As written here in the wiki its used to determine streamname. According to this ibm reference you probably can use As alternative you can determine the streamuuid on your own and write in the config in streamname and replace the content of the following method |
Thanks @WtfJoke Usage of scm workspace propertylist STREAMNAME did not provide proper information for the UUID. Changing the function collectstreamuuid and force the return of the UUID of my Stream allowed me to progress. The script now try to use another non-existing command line feature : lscm set component and lscm set flowtarget. In fact, most of the flowtarget commands are not supported ( add, set, remove ) C:\Git_tree\rtc2git\rtc2git>python migration.py Usage: lscm [options] [command] Use lscm help [command] to get detailed help for a specific command command - Name of the command to run Options: Commands:
Usage: lscm [options] [command] Use lscm help [command] to get detailed help for a specific command command - Name of the command to run Options: Commands: |
I used this reference:
will be and
will probably be: |
Thanks @WtfJoke |
Cool :) Happy to help.
The script doesnt support the conversion of baselines to git tags. EDIT: @z9944x : Can you please open up a pull request to branch 4.0? So others can reuse your adjustments. |
No description provided.
The text was updated successfully, but these errors were encountered: