You are here

Migrating subversion projects off Google Code

If you want to keep your project in Subversion, Google only gives you automated script for Sourceforge. In fact it is easy to migrate the repo to another host, e.g. Assembla

e.g.

OLDREPO=drupal-contrib
svnrdump dump https://$OLDREPO.googlecode.com/svn | gzip -9 > ${OLDREPO}_dump.gz
gzip -l ${OLDREPO}_dump.gz # find the original size

An open-source assembla space can be created here: www.assembla.com/…n_repository

And then import the zip directly into Assembla.

Now we need to relocate the repo information:

LOCAL=drupal-contrib
OLDREPO=drupal-contrib
NEWREPO=drupal_contrib
svn up $LOCAL #cd to the directory above
NEWHOST=https://subversion.assembla.com/svn

svn relocate https://$OLDREPO.googlecode.com/svn $NEWHOST/$NEWREPO/ $LOCAL --username myname
#or for old subversion
svn sw --relocate https://$OLDREPO.googlecode.com/svn $NEWHOST/$NEWREPO/ $LOCAL --username myname
#note that you might have to use http if that is how it is set up.
svn up $LOCAL # check it works
Topic: