Converting Subversion to Git

Ich hab irgendwo im Internet vorgestern mal folgendes tolle Skript gefunden mit dem man Subversion-Repos nach Git konvertieren kann:


Wenn man ein Projekt mit der gewohnten Subversion-Struktur hat wie z.B.

./perldaemon/trunk/
./perldaemon/branches/{foo,bar,baz}
./perldaemon/tags/v1.{1,2}

Und eine Autordatei (zwecks Mapping der User der Commits) wie z.B.

$ cat authorsfile 
hm = Hans Meiser <hm@buetow.org>   
am = Angela Merkel <merkel@buetow.org>  

angelegt hat, dann kann man mit

./svn2git.sh -r https://remote.example.com/svn/perldaemon -a authorsfile

sehr einfach das komplette Subversion-Projekt samt branches und tags nach Git konvertieren. Das koennte man zwar auch alles manuell mit 'git svn' tun, jedoch haette man dann erstmal alle tags aus Subversion in Git als branches. Die man dann wieder manuell in echte Git-tags umwandeln muesste. Das tut das Skript automatisch gleich mit :)


Pages

Powered by Movable Type 4.35-en

About this Entry

This page contains a single entry by rantanplan published on November 19, 2011 11:12 PM.

PerlDaemon v1.2.1 released was the previous entry in this blog.

Loadbars Screenshots is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.