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

SVN history is not captured #66

Open smartarix opened 4 years ago

smartarix commented 4 years ago

Hi , My project is not native RTC project, I migrated it in RTC from SVN. Now I'm migrating my RTC projecct to bitbucket using this tool. This tool did the migration but didn't captured the svn history. Is there any way I can capture svn history ?

WtfJoke commented 4 years ago

Hi @smartarix

This is a known "limitation". With rtc2git(cli) there is no way to capture the svn history. However if you are still in possession of the svn repos, you can use svn2git to migrate the svn part to git and from there continue to migrate the rtc part onto this repository using rtc2git(cli)

smartarix commented 4 years ago

Thanks @WtfJoke for your reply. My SVN repo don't exist anymore. Can you suggest path forward in this? How svn migrated changeset is different than native RTC changeset, is there any code modification we can do in rtctogitCli code? Also is there any way we can fetch and migrate only SVN history from RTC ?

WtfJoke commented 4 years ago

I dont know if the changesets are any different, but the initial baseline is set by RTC after Code has been migrated from SVN. And the initial baseline is the starting point of rtc2git (and I also think rtc2gitcli). Therefore it will be migrated from there onwards and not before. You can try to create a baseline before the svn code... but im not really sure if its possible rtc wise.

I have no experience migrating svn/cvs already migrated to rtc out of rtc. Our company luckily still had the cvs repo available as backup. And we used cvs2git and afterwards rtc2git.

Keep us updated if you find a way.

verhasi commented 4 years ago

Hi @smartarix ,

Could you please tell me whether the commits/changesets originating from SVN are visible on the history web UI of RTC?

regards, Istvan

smartarix commented 4 years ago

Hi @verhasi , Yes SVN history is visible in RTC UI

solzun commented 1 year ago

Hi @verhasi , Yes SVN history is visible in RTC UI

There is nothing special about SVN history in RTC, if you ran the SVN->RTC import correctly through Eclipse, each Subversion commit maps to a logical RTC changeset in the history.

Most likely you are not running with the right history configuration for your flow target in your workspace setup, and it's skipping the SVN-migrated-RTC changesets entirely. I did the same thing you did (had an RTC history established from SVN history) and it migrated to Git just fine. Once it's in RTC, it's not in any way "SVN history", they are logically mapped to changesets and are legit RTC changesets.