git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benoit Sigoure <tsuna@lrde.epita.fr>
To: Git Mailing List <git@vger.kernel.org>
Subject: Re: Importing merges when converting repos from SVN to Git
Date: Mon, 21 Jan 2008 19:36:07 +0100	[thread overview]
Message-ID: <A35436D5-71EA-4185-BBC1-4ECCE4D63A0E@lrde.epita.fr> (raw)
In-Reply-To: <47839311.2010606@viscovery.net>

Hi people,
I wrote a script (svn-merge2git [1]) that helps to convert SVN merges  
to Git merges.  The script basically detects the merges from their  
commit message and re-create them properly on the Git side.  It took  
me several iterations to get it right but it eventually successfully  
converted a SVN repo with ~2500 revisions in a dozen of branches with  
~100 merges in between them.  The script can be used when one wants  
to entirely convert a SVN repo to a Git one while preserving the  
merges (that is, showing the merges in the Git history).  I guess it  
can also be used to inject merges in the history of a git-svn repo to  
facilitate merging of SVN branches with Git, although I haven't had  
time to experiment this for now.

I hope this will be helpful to others.

[1] Code and explanations at: http://repo.or.cz/w/svn-merge2git.git

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory

      reply	other threads:[~2008-01-21 18:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08 14:48 Importing merges when converting repos from SVN to Git (fusing grafts in the Git history) Benoit Sigoure
2008-01-08 15:13 ` Johannes Sixt
2008-01-21 18:36   ` Benoit Sigoure [this message]

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=A35436D5-71EA-4185-BBC1-4ECCE4D63A0E@lrde.epita.fr \
    --to=tsuna@lrde.epita.fr \
    --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).