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

Extra load for component is lauched #31

Closed akoptelov closed 7 years ago

akoptelov commented 7 years ago

I'm trying to migrate RTC project stream with multiple components with history starting not from beginning. After accepting first commit, I'm getting several messages about directory checked out from different place and then exception with generic message "load ... before migrate-to-git".

The problem is that for each component accepting its first commit launches 'load' delegate for that component that fails because the component is already loaded. This only works if each component in the "target" workspace has "initial baseline" and thus empty content.

As a workaround, "update" option can be specified.

akoptelov commented 7 years ago

Now I see why load delegate is launched. This is required for e.g. component which migration is started with initial baseline. After loading such component accepting changes doesn't modify local sandbox (which looks to me as very strange scm behaviour). The solution is to fetch components that are loaded into the sandbox before migration and do loading only for newly added components.