All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
To: git@vger.kernel.org
Subject: svn to git with non-standard layout
Date: Wed, 23 Nov 2011 20:23:34 +0100	[thread overview]
Message-ID: <jajh7m$it7$1@dough.gmane.org> (raw)

Hi all,

we just want to migrate from subversion to git, but so far all attempts 
to do that resulted in missing commit information.

So we have an svn repo with multiple sub-repos. The trouble is now that 
those sub-repos have their own trunk/tags (no branches) directories, but 
actually those projects are very dependent on each other and lots of 
commits go to many sub-project in a single commit.
So our new git repository shall meld all sub-projects into a new common 
repository.

So we have something like this:

svn-root -> main-project
             /       |    \
            /        |     \
           proj1    proj2   proj{n}
          /    \     /   \    /    \
         /      \   /     \  trunk  tags
        /       \ trunk   tags
        trunk   tags
                /   \
               tag1 tag{2...n}


I think the same issue has been asked a few times before, for example here:

http://comments.gmane.org/gmane.comp.version-control.git/163491

but I still do not know how to properly convert the old structure into a 
new global one. So we simply want to have:

branches,tags <- main-project -> {proj1, proj2, ..., projN}

I think the above link suggests something like

[svn-remote "svn"]
         url = https://some-repo-url
         fetch=/:refs/remotes/svnroot
         fetch = build_scripts/trunk:refs/remotes/build_scripts/trunk
         fetch = create_repos/trunk:refs/remotes/create_repos/trunk


When I'm going to to 'svn fetch' this, files from different projects are 
going to be in the same directory. But of course, the project directory 
structure is supposed to stay as it it.

Any ideas what I still could try to do?


Thanks,
Bernd

             reply	other threads:[~2011-11-23 19:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 19:23 Bernd Schubert [this message]
2011-11-23 20:22 ` svn to git with non-standard layout Stephen Bash
2011-11-23 20:52   ` Bernd Schubert
2011-11-23 21:19 ` Frans Klaver
2011-11-23 21:45   ` Bernd Schubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jajh7m$it7$1@dough.gmane.org' \
    --to=bernd.schubert@itwm.fraunhofer.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.