Difference between revisions of "Git svn"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
		
	
| Line 8: | Line 8: | ||
  svnadmin create C:/relax/branches/relax_disp  |   svnadmin create C:/relax/branches/relax_disp  | ||
| − | |||
  echo exit 0 > C:/relax/trunk/hooks/pre-revprop-change.bat  |   echo exit 0 > C:/relax/trunk/hooks/pre-revprop-change.bat  | ||
  echo exit 0 > C:/relax/branches/relax_disp/hooks/pre-revprop-change.bat  |   echo exit 0 > C:/relax/branches/relax_disp/hooks/pre-revprop-change.bat  | ||
| − |   svnsync init file:///C:/relax/trunk   | + |   svnsync init file:///C:/relax/trunk svn://svn.gna.org/svn/relax/trunk  | 
| − |   svnsync init file:///C:/relax/branches/relax_disp   | + |   svnsync init file:///C:/relax/branches/relax_disp svn://svn.gna.org/svn/relax/branches/relax_disp  | 
  # 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.  |   # Example. 20500 commits, toke from 22 PM to 23 PM.  | ||
Revision as of 20:31, 20 July 2013
Background
Based on this and this article.
Windows
md C:\relax svnadmin create C:/relax/trunk md C:\relax\branches svnadmin create C:/relax/branches/relax_disp echo exit 0 > C:/relax/trunk/hooks/pre-revprop-change.bat echo exit 0 > C:/relax/branches/relax_disp/hooks/pre-revprop-change.bat
svnsync init file:///C:/relax/trunk svn://svn.gna.org/svn/relax/trunk svnsync init file:///C:/relax/branches/relax_disp svn://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, toke from 22 PM to 23 PM. svnsync sync file:///C:/relax/trunk svnsync sync file:///C:/relax/branches/relax_disp
md C:\relax\trunk_git cd C:\relax\trunk_git git svn clone file:///C:/relax/trunk -s
md C:\relax\branches\relax_disp_git cd C:\relax\branches\relax_disp_git git svn clone file:///C:/relax/branches/relax_disp -s