convert old repository to mercurial

Posted by nedlud on Stack Overflow See other posts from Stack Overflow or by nedlud
Published on 2010-03-25T23:13:20Z Indexed on 2010/03/26 0:43 UTC
Read the original article Hit count: 243

Filed under:
|
|

I've been playing around with different versioning systems to find one I'm comfortable with. I started with SVN (lets call this version of the project "f1"), then changed over to GIT. But I didn't know how to convert the old SVN repo to GIT, so I just copied the folder, deleted the .svn stuff, and turned it into a GIT repo (lets call this copied version "f2").

Now I'm playing around with Mercurial and was very pleased to find that it has a Tortoise client for Windows. I was also please to find how easy it was to convert the GIT repo into Mercurial, so I preserved the history (I still cloned it first, just in case. So I'm calling this hg version "f3").

But now what I'm wondering is: what do I do with the old SVN repo that still holds my history from before I played with GIT?

I guess I can convert the old SVN repo to Mercurial, but can I then merge those two histories into the one repository so I have a complete set of histories in one place? In other words, can I prepend f1 to f3?

© Stack Overflow or respective owner

Related posts about svn

Related posts about git