Open main menu

Background

Based on this and this article.

mkdir gittest
cd gittest
svnadmin create svn
#In windows
echo exit 0 > svn/hooks/pre-revprop-change.bat
#In linux
echo "#!/bin/sh" > svn/hooks/pre-revprop-change
echo "exit 0;" >> svn/hooks/pre-revprop-change
chmod +x svn/hooks/pre-revprop-change
svnsync init file:///c:/WinPython27/gittest/svn http://svn.gna.org/svn/relax/trunk
# Be aware, if your repo is big, it could take a loooot of time.
# Example. 20500 commits, toke from 22 PM to 23 PM.
svnsync sync file:///c:/WinPython27/gittest/svn
mkdir git
cd git
git svn clone file:///c:/WinPython27/gittest/svn -s