Migrating from Trac/Subversion to Redmine/Git
Added by B V over 12 years ago
We recently decided at the company I work for to switch from Subversion to Git and also from Trac to Redmine because of the switch. I am able to make this happen using git-svn which allows me to either keep the git-svn references (linking svn commits to git commits) or not. Also, I would be using the trac-to-redmine conversion script to bring over all tickets and wikis etc.
Because we are using Trac we make of use of comments on our development tickets that include subversion references e.g. r12345. What this allows us to do is click on the revision number and instantly see the changset for that commit.
I'm looking for help on how to get these subversion revisions into a Redmine/Git readable reference, so that for instance, our QA department can go to older tickets and see the changesets.
One option that I am thinking of is keeping the git-svn references when I convert a repository from svn to git. I could write some kind of script that would change these subversion references in comments on tickets (in Redmine) to become git-svn references, or even find the git-svn reference after, and then change it to a git commit reference. This sounds really painful and database altering heavy.
Does anyone have any suitable ideas of how we can achieve this move whilst keeping references to subversion changesets available?
Is it possible to link a project to more than one repository? For instance, have our project be linked to the subversion repo (mostly just for the tickets that have Subversion changesets linking out of them), and also have the project linking to our current Git repository that we would be developing on?
Just in case:
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1.3
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root /var/redmine/redmine-1.4.0
Environment production
Database adapter postgresql
Database schema version 20120301153455