git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Martin Langhoff" <martin.langhoff@gmail.com>
To: "Linus Torvalds" <torvalds@linux-foundation.org>
Cc: "Alf Mikula" <amikula@gmail.com>, git@vger.kernel.org
Subject: Re: Migrating a git repository to subversion
Date: Fri, 16 May 2008 15:53:08 +1200	[thread overview]
Message-ID: <46a038f90805152053n43add2cbj8383c475772c3681@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.1.10.0805151952260.2941@woody.linux-foundation.org>

On Fri, May 16, 2008 at 3:01 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> On Thu, 15 May 2008, Alf Mikula wrote:
>> Having said that, I want to demonstrate git's git<--->svn
>> capabilities, and currently everybody here has and understands
>> Subversion.  So, I want to initialize a Subversion repository with my
>> git history from my local git repository.  Here's what I tried:
>
> Hmm. I don't think there is any git2svn thing, but if your history is
> linear (which is really the only thing SVN can handle, since SVN doesn't
> really do "merges" in the git sense at all), you could just write some
> silly script to extract the patches one by one and commit them using SVN.

The git svn rebase trick described earlier does almost exactly what Alf wants.

> Or, and this gets extra points for being disgusting, use "git-cvsserver"
> to serve a remote CVS repo, then cvssuck to create a local CVS repo out of
> it, and then do cvs2svn to create a SVN repo. Ta-daa!

Ugh. Evil man.



m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

  reply	other threads:[~2008-05-16  3:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 23:08 Migrating a git repository to subversion Alf Mikula
2008-05-15 23:19 ` Avery Pennarun
2008-05-15 23:47   ` Björn Steinbrink
2008-05-16  3:01 ` Linus Torvalds
2008-05-16  3:53   ` Martin Langhoff [this message]
2008-05-16 17:45     ` Alf Mikula
2008-05-16  4:59 ` Imran M Yousuf

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=46a038f90805152053n43add2cbj8383c475772c3681@mail.gmail.com \
    --to=martin.langhoff@gmail.com \
    --cc=amikula@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=torvalds@linux-foundation.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).