Closed spring-operator closed 13 years ago
Chris Beams commented
Notes on how the migration has been performed thus far, and how it will be completed on the day of switchover:
See attached. Place this file in its conventional location at ~/.svn2git/authors
, or reference it explicitly with svn2git --authors
option. All commands below omit --authors
in favor of the default location. In any case, it's important to set this file up in order to have a clean commit history in the new repository (i.e. all committers have proper names and email addresses)
There is a recent fix to svn2git --rebase
that is critical for our purposes. In order to take advantage of it, do the following:
First, ensure you have gem
installed, if not, macports or google can help.
sudo gem install git
sudo gem install rubyforge
sudo gem install technicalpickles-jeweler -s http://gems.github.com
sudo gem install rake
git clone http://github.com/jsnyder/svn2git.git
cd svn2git
mkdir spring-integration
cd spring-integration
svn2git --verbose https://src.springframework.org/svn/spring-integration
svn2git --rebase # pick up any changes since original svn2git above
git remote add origin git@git.springsource.org:spring-integration/spring-integration.git
git push --dry-run --all --set-upstream origin
git push --dry-run --tags origin
git push --all --set-upstream origin
git push --tags origin
At this point, the new git repository has been populated, and any interim commits between now and the actual day of switching can be updated with svn2git --rebase
cd /path/to/spring-integration
svn2git --rebase
git push --tags origin
Note the above assumes there are no new branches. If so, do an additional git push --all --set-upstream origin
Grzegorz Grzybek commented
I think that's good news to migrate from SVN to Git - but with SVN it's easier to quickly look at repository by browsing https://src.springframework.org/svn/spring-integration/ - are you planning to add some HTTP interface to Git? Are you going to prepare some instructions about how to find Spring products' sources in git.springsource.org?
Chris Beams commented
@Grzegorz
- yes, there will be an http interface and announcements to this effect soon. Thanks for the feedback.
Grzegorz Grzybek commented
Thanks :) I hope this will be somehow similar to GitHub - this will surely open a new chapter for Spring's community support! Are all of Spring portfolio products going to be moved to Git? For SVN I guessed some URLs (e.g. for Spring Integration adapters), but I haven't figured out where Spring-Social sources come from...
best regards!
Chris Beams commented
authors
file as mentioned in migration instructions
Chris Beams commented
Reopening to update the authors file attachment with a more accurate one
Chris Beams commented
Re-resolved
Mark Fisher opened INT-1348 and commented
Spring Integration will move from Subversion to Git, and this switch is planned to occur immediately following the 2.0 RC1 release.
Attachments:
Sub-tasks:
5368 Restrict write access to spring-integration SVN
5370 Switch bamboo configuration to pull from git repo
Issue Links:
5385 Release SI 2.0.0.M7
("depends on")
5378 Migrate SI samples to dedicated git repository
("is depended on by")