Created
December 15, 2010 21:48
-
-
Save santagada/742668 to your computer and use it in GitHub Desktop.
convert a google code svn repository but first svnsync it, so you can try the conversion again and easily convert the wiki later. It is way faster too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -u | |
set -e | |
svnadmin create svn-mirror | |
echo "#!/bin/sh" > svn-mirror/hooks/pre-revprop-change | |
echo "exit 0" >> svn-mirror/hooks/pre-revprop-change | |
chmod +x svn-mirror/hooks/pre-revprop-change | |
svnsync init file://`pwd`/svn-mirror http://$1.googlecode.com/svn | |
svnsync sync file://`pwd`/svn-mirror | |
hg convert file://`pwd`/svn-mirror hg-mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment