{"thread":{"id":"11361","subject":"Git-to-svn convert","startedAt":"2007-12-19T22:14:25Z","lastAt":"2007-12-20T15:12:05Z","messageCount":5,"participants":["Thomas Harning","Miklos Vajna","Martin Langhoff","Andrew McMillan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"63804","messageId":"476997C1.2080506@gmail.com","threadId":"11361","inReplyTo":null,"subject":"Git-to-svn convert","fromName":"Thomas Harning","fromEmail":"harningt@gmail.com","sentAt":"2007-12-19T22:14:25Z","receivedAt":"2007-12-19T22:14:25Z","isPatch":false,"sender":{"key":"harningt@gmail.com","avatar":"https://gravatar.com/avatar/a79ddd43da8c8f1f899cd75b7b95cc5f3b2ba5643400468988b1a12c86b75d08?d=mp&s=160"},"body":"Is there a reasonable way to convert a Git project to Subversion...\nYeah, I know, blasphemy :-P... but I worked on a project in Git and my \nboss wants me to put it into Subversion.\n\ngit-svn looks to be the tool for this.. however I had some non-linear \ndev, which doesn't look like it'd commit (In the past I think I tried \nthis and it failed to deal w/ a branch-and-merge...).\n\nExample of what I mean...:\n\na - b -\n `c'\n\n\nAs to how to pull the repository into subversion.. how would I do that?\ngit-svn init ?\n"},{"id":"63812","messageId":"20071219231643.GB7378@genesis.frugalware.org","threadId":"11361","inReplyTo":"476997C1.2080506@gmail.com","subject":"Re: Git-to-svn convert","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2007-12-19T23:16:43Z","receivedAt":"2007-12-19T23:16:43Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Wed, Dec 19, 2007 at 05:14:25PM -0500, Thomas Harning <harningt@gmail.com> wrote:\n> Example of what I mean...:\n> \n> a - b -\n> `c'\n> \n> \n> As to how to pull the repository into subversion.. how would I do that?\n> git-svn init ?\n\ni think you have two options:\n\n- use some 3rd-party tool like tailor\n\n- first you should rewrite your history by creating a linear history\n  then git-svn can dcommit your changes to svn\n\n- VMiklos\n"},{"id":"63820","messageId":"46a038f90712191554t2c1adc79s7948c7002c145143@mail.gmail.com","threadId":"11361","inReplyTo":"476997C1.2080506@gmail.com","subject":"Re: Git-to-svn convert","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2007-12-19T23:54:59Z","receivedAt":"2007-12-19T23:54:59Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"Hi Thomas,\n\nI think Andrew McMillan had written a few scripts to \"export\" a git\nrepo to SVN and CVS. Not sure whether the code is public. But at least\nfor a while, the Mahara project was using git with SVN and CVS\n\"readonly\" exported repos, a bit like the BK->CVS of yore. He may have\nbeen using git-svn though.\n\ncheers,\n\n\nmartin\n"},{"id":"63833","messageId":"1198128721.24580.78.camel@hippy.mcmillan.net.nz","threadId":"11361","inReplyTo":"46a038f90712191554t2c1adc79s7948c7002c145143@mail.gmail.com","subject":"Re: Git-to-svn convert","fromName":"Andrew McMillan","fromEmail":"andrew@catalyst.net.nz","sentAt":"2007-12-20T05:32:01Z","receivedAt":"2007-12-20T05:32:01Z","isPatch":false,"sender":{"key":"andrew@catalyst.net.nz","avatar":null},"body":"My code is an embarrasingly ugly, gruesome hack, but it (sort of)\nworks...\n\nI use it to keep the SVN and CVS trees up to date on Sourceforge for\nDAViCal ( http://rscds.sf.net/ ) from the Git tree.\n\nCheers,\n\t\t\t\t\tAndrew.\n\nOn Thu, 2007-12-20 at 12:54 +1300, Martin Langhoff wrote:\n> Hi Thomas,\n> \n> I think Andrew McMillan had written a few scripts to \"export\" a git\n> repo to SVN and CVS. Not sure whether the code is public. But at least\n> for a while, the Mahara project was using git with SVN and CVS\n> \"readonly\" exported repos, a bit like the BK->CVS of yore. He may have\n> been using git-svn though.\n> \n> cheers,\n> \n> \n> martin\n> \n-------------------------------------------------------------------------\nAndrew @ Catalyst .Net .NZ  Ltd,  PO Box 11-053, Manners St,  Wellington\nWEB: http://catalyst.net.nz/            PHYS: Level 2, 150-154 Willis St\nDDI: +64(4)803-2201      MOB: +64(272)DEBIAN      OFFICE: +64(4)499-2267\n                        Is this really happening?\n-------------------------------------------------------------------------\n\n"},{"id":"63867","messageId":"476A8645.7080007@gmail.com","threadId":"11361","inReplyTo":"1198128721.24580.78.camel@hippy.mcmillan.net.nz","subject":"Re: Git-to-svn convert","fromName":"Thomas Harning","fromEmail":"harningt@gmail.com","sentAt":"2007-12-20T15:12:05Z","receivedAt":"2007-12-20T15:12:05Z","isPatch":false,"sender":{"key":"harningt@gmail.com","avatar":"https://gravatar.com/avatar/a79ddd43da8c8f1f899cd75b7b95cc5f3b2ba5643400468988b1a12c86b75d08?d=mp&s=160"},"body":"Andrew McMillan wrote:\n> My code is an embarrasingly ugly, gruesome hack, but it (sort of)\n> works...\n>\n> I use it to keep the SVN and CVS trees up to date on Sourceforge for\n> DAViCal ( http://rscds.sf.net/ ) from the Git tree.\n>\n> Cheers,\n> \t\t\t\t\tAndrew\nWhere might I find the code?  I checked out git.catalyst.net.nz ... but \nI couldn't find anything that seemed to be a sync tool...  I figure I'd \ngive it a try before manually rebasing or progressively cherry-picking a \nnew tree...\n"}]}