savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [Git] (edit) convertion from SVN


From: Beuc
Subject: [Savannah-cvs] [Git] (edit) convertion from SVN
Date: Sun, 24 Jun 2007 14:39:50 +0000

++added:

SVN import

Git comes with 2 SVN-related tools: git-svnimport and git-svn. git-svnimport is 
for importing revisions (a one-shot import, or incrementally); git-svn is a 
2-way gateway to a SVN repository, similar to SVK, more useful for maintaining 
a local branch than for importing a repository (IMHO). We'll use git-svnimport.

Those tools use an authors file to map username->real name (option -A) it looks 
like this::
 rms = Richard M. Stallman <address@hidden>
 toto = Another User <address@hidden>
 ...

Common invokation:
 git-svnimport -v -I .gitignore -A ../authors.txt file:///home/me/svn_repo

To ignore branches:
 git-svnimport -v -I .gitignore -A ../authors.txt -b idontexist 
file:///home/me/tests/svn_repo

git-svnimport assumes there's a trunk, a branches, and a tags directory (names 
are configurable) and ignores other directories. You may run into troubles if 
your layout changed during your former SVN life.

You'll usually perform the import several times before getting what you want. 
For this reason it's preferable to rsync the SVN repository locally, or create 
it from a dump:
 rsync -av rsync://svn.sv.gnu.org::svn/myproject svn_repo
 
 wget http://svn.gna.org/daily/myproject.dump.gz
 svnadmin init svn_repo
 zcat myproject.dump.gz | svnadmin load svn_repo/



--
forwarded from 
https://savannah.gnu.org/maintenance/address@hidden://savannah.gnu.org/maintenance




reply via email to

[Prev in Thread] Current Thread [Next in Thread]