Completesvn2git

Aus SDQ-Wiki
Zur Navigation springen Zur Suche springen

To migrate a complete SVN repository to GIT (i.e., also migrating the commit history of all files), you can proceed like described here: http://stackoverflow.com/questions/79165/how-to-migrate-svn-repository-with-history-to-a-new-git-repository

In particular, I (Steffen Becker) followed the instructions found in this answer to migrate Palladio code: http://stackoverflow.com/a/3972103

The authors file which was used to migrate SimuLizar can be found in the SDQ-SVN (https://svnserver.informatik.kit.edu/i43/svn/code/GitMigration/authors.txt). Additional mappings should be inserted there to facilitate future migrations. If you do not possess the access rights to append new mappings to the authors file, please contact one of the members of SDQ.

The relevant authors can be determined for a svn repository as in the following example for the MonitorRepository (taken from: https://stackoverflow.com/questions/2494984/how-to-get-a-list-of-all-subversion-commit-author-usernames/2495010#2495010).

svn log https://svnserver.informatik.kit.edu/i43/svn/code/MonitorRepository/ --quiet | grep "^r" | awk '{print $3}' | sort | uniq