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