git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Migrating a git repository to subversion

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
May 16, 2008, 03:53 UTC
Message-ID
<46a038f90805152053n43add2cbj8383c475772c3681@mail.gmail.com>
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:

Show 10 quoted lines
> 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
Previous: Linus TorvaldsNext: Alf Mikula
Message 5 of 7 in “Migrating a git repository to subversion”
  1. Alf MikulaMay 15, 2008
  2. Avery PennarunMay 15, 2008
  3. Björn SteinbrinkMay 15, 2008
  4. Linus TorvaldsMay 16, 2008
  5. Martin LanghoffMay 16, 2008
  6. Alf MikulaMay 16, 2008
  7. Imran M YousufMay 16, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.