git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git-to-svn convert
@ 2007-12-19 22:14 Thomas Harning
  2007-12-19 23:16 ` Miklos Vajna
  2007-12-19 23:54 ` Martin Langhoff
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Harning @ 2007-12-19 22:14 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Is there a reasonable way to convert a Git project to Subversion...
Yeah, I know, blasphemy :-P... but I worked on a project in Git and my 
boss wants me to put it into Subversion.

git-svn looks to be the tool for this.. however I had some non-linear 
dev, which doesn't look like it'd commit (In the past I think I tried 
this and it failed to deal w/ a branch-and-merge...).

Example of what I mean...:

a - b -
 `c'


As to how to pull the repository into subversion.. how would I do that?
git-svn init ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Git-to-svn convert
  2007-12-19 22:14 Git-to-svn convert Thomas Harning
@ 2007-12-19 23:16 ` Miklos Vajna
  2007-12-19 23:54 ` Martin Langhoff
  1 sibling, 0 replies; 5+ messages in thread
From: Miklos Vajna @ 2007-12-19 23:16 UTC (permalink / raw)
  To: Thomas Harning; +Cc: Junio C Hamano, git

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

On Wed, Dec 19, 2007 at 05:14:25PM -0500, Thomas Harning <harningt@gmail.com> wrote:
> Example of what I mean...:
> 
> a - b -
> `c'
> 
> 
> As to how to pull the repository into subversion.. how would I do that?
> git-svn init ?

i think you have two options:

- use some 3rd-party tool like tailor

- first you should rewrite your history by creating a linear history
  then git-svn can dcommit your changes to svn

- VMiklos

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Git-to-svn convert
  2007-12-19 22:14 Git-to-svn convert Thomas Harning
  2007-12-19 23:16 ` Miklos Vajna
@ 2007-12-19 23:54 ` Martin Langhoff
  2007-12-20  5:32   ` Andrew McMillan
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Langhoff @ 2007-12-19 23:54 UTC (permalink / raw)
  To: Thomas Harning; +Cc: Junio C Hamano, git, Andrew McMillan

Hi Thomas,

I think Andrew McMillan had written a few scripts to "export" a git
repo to SVN and CVS. Not sure whether the code is public. But at least
for a while, the Mahara project was using git with SVN and CVS
"readonly" exported repos, a bit like the BK->CVS of yore. He may have
been using git-svn though.

cheers,


martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Git-to-svn convert
  2007-12-19 23:54 ` Martin Langhoff
@ 2007-12-20  5:32   ` Andrew McMillan
  2007-12-20 15:12     ` Thomas Harning
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew McMillan @ 2007-12-20  5:32 UTC (permalink / raw)
  To: Martin Langhoff; +Cc: Thomas Harning, Junio C Hamano, git

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

My code is an embarrasingly ugly, gruesome hack, but it (sort of)
works...

I use it to keep the SVN and CVS trees up to date on Sourceforge for
DAViCal ( http://rscds.sf.net/ ) from the Git tree.

Cheers,
					Andrew.

On Thu, 2007-12-20 at 12:54 +1300, Martin Langhoff wrote:
> Hi Thomas,
> 
> I think Andrew McMillan had written a few scripts to "export" a git
> repo to SVN and CVS. Not sure whether the code is public. But at least
> for a while, the Mahara project was using git with SVN and CVS
> "readonly" exported repos, a bit like the BK->CVS of yore. He may have
> been using git-svn though.
> 
> cheers,
> 
> 
> martin
> 
-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ  Ltd,  PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/            PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201      MOB: +64(272)DEBIAN      OFFICE: +64(4)499-2267
                        Is this really happening?
-------------------------------------------------------------------------


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Git-to-svn convert
  2007-12-20  5:32   ` Andrew McMillan
@ 2007-12-20 15:12     ` Thomas Harning
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Harning @ 2007-12-20 15:12 UTC (permalink / raw)
  To: Andrew McMillan; +Cc: Martin Langhoff, Junio C Hamano, git

Andrew McMillan wrote:
> My code is an embarrasingly ugly, gruesome hack, but it (sort of)
> works...
>
> I use it to keep the SVN and CVS trees up to date on Sourceforge for
> DAViCal ( http://rscds.sf.net/ ) from the Git tree.
>
> Cheers,
> 					Andrew
Where might I find the code?  I checked out git.catalyst.net.nz ... but 
I couldn't find anything that seemed to be a sync tool...  I figure I'd 
give it a try before manually rebasing or progressively cherry-picking a 
new tree...

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-20 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 22:14 Git-to-svn convert Thomas Harning
2007-12-19 23:16 ` Miklos Vajna
2007-12-19 23:54 ` Martin Langhoff
2007-12-20  5:32   ` Andrew McMillan
2007-12-20 15:12     ` Thomas Harning

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).