Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [git] SVN2Git migration issues...

One thing I did recently for an svn repo with undesired directory tree:

$ svnadmin dump old-svn ... 2> dump.log > svndump1
$ sed -e "s#-path: bogus/path/prefix#-path: standard/path/prefix#" < svndump1 > svndump2 2> sed.log
$ # create a new svn repo
$ svnadmin load new-svn < svndump2

It appeared to be easier to massage the SVN upfront so that migration
tools would find everything in expected places.

YMMV,
Stephan

On 04/12/2012 09:06 PM, Eric Gwin wrote:
Eike,

Thanks! Awesome blog, and a pretty sweet repository too. They were the
key to the light-bulb going off in my head.

My problem it seems is not the tooling per-se, but rather the "almost
standard" approach we had to our SVN repository to begin with. We
misunderstood the "best-practices" in SVN and created trunk,
branches/<branchname>/trunk, and tags/<tagname>. Using one tool (KDE's
svn2git) I can translate our non-standard directory structure, but it
leaves floating branches (because the branch root never gets converted),
using the packaged svn2git tools I end up with cruft on the branch with
the real data one level down under "trunk". Attempts to "rename the
branch" once in git don't work - obviously they are no longer simply
high-level directories. So it looks like a truly successful migration
will need my semi-manual approach after all - which would probably be
too costly for a timely conversion.

Though I am still looking at other tooling options.

-Eric

On 04/04/2012 10:31 AM, Eike Stepper wrote:
Hi Eric,

Stefan Winkler has done a great job when migrating our CDO repository
to Git. He's explained it in detail:
http://www.winklerweb.net/index.php/blog/4-eclipse/16-migrating-the-cdo-svn-repository-to-git


Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


_______________________________________________
git mailing list
git@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/git

_______________________________________________
git mailing list
git@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/git


Back to the top