This is a collection of scripts and files to support the migration of Pentaho subversion repositories to git.
A fairly comprehensive authors file is included as authors.txt. Please update this if you have changes and use it for all migrations.
Here's a the command to pull in all history for a project using the provided authors file:
sh git-svn-migrate.sh $SVN_REPO_URL authors.txt
sh gen-svn-authors.sh $REPO_URL > my-repos-authors.txtThis generates an authors list in the formatsvn_username = svn_username <svn_username@pentaho.com>- Edit my-repos-authors.txt to fix the actual names and email addresses as required.
In the event that a subversion project was created as a copy of another the migration will follow the history back to through the original project. This is not desirable and history past the creation of the project should be discarded. You can use the following command to remove history beyond a certain commit hash. This is not permanent until you invoke git gc on the repository.
sh git-remove-history-past.sh $COMMIT_HASH
The git-replace-parent.sh script was useful to fix branchs when migrating the Mondrian project from Perforce. It will likely not be needed for any Subversion migration but it exists incase we need to manually fix branch histories. For more information see http://stackoverflow.com/questions/3810348/setting-git-parent-pointer-to-a-different-parent.
- Move the subversion repository to the "archive" section. Preserving the structure as much as possible
- Update the wiki with the project you've migrated, old and new locations: http://wiki.pentaho.com/display/PEOpen/Project+Migration+List