Difference between revisions of "Git svn"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | + | = Background = | |
Based [http://git-scm.com/book/ch8-1.html on this] and [http://iacoware.wordpress.com/2009/10/02/howto-use-svnsync-to-mirror-a-repository-on-windows/ this article.] | Based [http://git-scm.com/book/ch8-1.html on this] and [http://iacoware.wordpress.com/2009/10/02/howto-use-svnsync-to-mirror-a-repository-on-windows/ this article.] | ||
− | === | + | == Windows == |
+ | === Test 2 === | ||
md C:\relax\svn\trunk | md C:\relax\svn\trunk | ||
svnadmin create --pre-1.4-compatible C:/relax/svn/trunk/.svn | svnadmin create --pre-1.4-compatible C:/relax/svn/trunk/.svn | ||
Line 22: | Line 23: | ||
git svn clone file:///C:/relax/svn/trunk -s | git svn clone file:///C:/relax/svn/trunk -s | ||
git svn clone file:///C:/relax/svn/branches/relax_disp -s | git svn clone file:///C:/relax/svn/branches/relax_disp -s | ||
+ | |||
+ | === Test 2 === | ||
+ | [http://www.tfnico.com/presentations/git-and-subversion Based on these posts] and on [http://trac.parrot.org/parrot/wiki/git-svn-tutorial these posts]. |
Revision as of 09:01, 21 July 2013
Contents
Background
Based on this and this article.
Windows
Test 2
md C:\relax\svn\trunk svnadmin create --pre-1.4-compatible C:/relax/svn/trunk/.svn
md C:\relax\svn\branches\relax_disp svnadmin create --pre-1.4-compatible C:/relax/svn/branches/relax_disp/.svn
echo exit 0 > C:/relax/svn/trunk/.svn/hooks/pre-revprop-change.bat echo exit 0 > C:/relax/svn/branches/relax_disp/.svn/hooks/pre-revprop-change.bat
svnsync init file:///C:/relax/svn/trunk/.svn http://svn.gna.org/svn/relax/trunk/ svnsync init file:///C:/relax/svn/branches/relax_disp/.svn http://svn.gna.org/svn/relax/branches/relax_disp/ # Be aware, if your repo is big, it could take a loooot of time. # Example. 20500 commits, took from 22 PM to 23 PM. svnsync sync file:///C:/relax/svn/trunk/.svn svnsync sync file:///C:/relax/svn/branches/relax_disp/.svn
cd C:\relax git svn clone file:///C:/relax/svn/trunk -s git svn clone file:///C:/relax/svn/branches/relax_disp -s
Test 2
Based on these posts and on these posts.