From: Jehan Bing <jehan@orb.com>
To: git@vger.kernel.org
Subject: Re: How to migrate a complex directory structure from SVN to GIT?
Date: Wed, 18 Jan 2012 10:47:48 -0800 [thread overview]
Message-ID: <4F1713D4.9000602@orb.com> (raw)
In-Reply-To: <1326828837924-7197567.post@n2.nabble.com>
On 2012-01-17 11:33, Asuka wrote:
> I would like to migrate all branches and tags .. but unfortunately sometimes
> I have just a trunk directory and no branches or tags directory. Sometimes
> the branches are in a subdirectory, sometimes in a subsubdirectory. So how
> can migrate my svn in an efficient way?
From the look of your example, each project is either a trunk, or have
subdirectories for trunk/branches/tags so I don't think it's a problem.
If you don't have branches or tags, just don't specify them when you
clone your subversion repository.
If however you have a more complex layout, you can use "git svn init",
then edit .git/config to suit your needs, then run "git svn fetch".
And by "suit your needs", I mean you can add multiple "fetch=..." lines.
In my case, I ended up having one "fetch=..." for each trunk, branch and
tag.
It was not efficient, it took 2 weeks to convert <30k revisions, ~200
branches/project, ~80 projects, but it works well enough for me.
Jehan
next prev parent reply other threads:[~2012-01-18 18:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 19:33 How to migrate a complex directory structure from SVN to GIT? Asuka
2012-01-18 10:43 ` Michael Haggerty
2012-01-18 18:47 ` Jehan Bing [this message]
2012-01-27 4:46 ` David Barr
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=4F1713D4.9000602@orb.com \
--to=jehan@orb.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).