[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[git] migrating a svn repository with several sub-modules

Hi,

I'm studying the migration of MoDisco[1] from SVN to Git.
The MoDisco repository looks like this:

plugins
   trunk
      pluginA
      pluginB
      ...
   tags
      R0_7_1
         pluginA
         pluginB
      R0_8_0
         pluginA
         pluginB
      ...
   branches
      0_7
         pluginA
         pluginB
      0_8
         pluginA
         pluginB
      ...
features
   trunk
      featureA
      ...
   tags
      R0_7_1
         featureA
      ...
   branches
      0_7
         featureA
      ...
tests
   trunk
   tags
   branches
examples
   trunk
   tags
   branches
doc
   trunk
   tags
   branches
...

We'd like to migrate this to a single git repository that would eventually look like :
trunk
  plugins
    pluginA
    pluginB
  features
    featureA
    featureB
branches
  0_7
    plugins
      pluginA
    features
      featureA
tags
  R0_7_1
    plugins
    features


I've tried the migration using git-svn, but it fails on this layout because of the several trunks.
I also tried migrating a copy of the MoDisco svn to the desired layout (by calling many "svn move" in a script) prior to calling git-svn, but git-svn then only looks at revisions starting from the recent move, thereby losing all the previous history.
I suspect git-svn starts from the current trunk and only looks at the history of this trunk at the current location. Can anyone confirm this?

Does anyone have experience with migrating a svn repository with this layout to git?
Or with stitching together several git repositories to form a unique repository with full history?

[1] https://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco
--
Nicolas Bros
R&D
tel: 06 75 09 19 88
nbros@xxxxxxxxxxxxxxxx
nbros.mia@xxxxxxxxx
Mia-Software, 410 clos de la Courtine
93160 Noisy-le-Grand
http://www.mia-software.com
.: model driven agility :.