Difference between revisions of "Git svn"

From relax wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
  svnsync init file:///c:/WinPython27/gittest/svn http://svn.gna.org/svn/relax/trunk
 
  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.
 
  # 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
 
  svnsync sync file:///c:/WinPython27/gittest/svn
  

Revision as of 20:00, 20 July 2013

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