You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Yuri Z <ve...@gmail.com> on 2011/05/15 17:45:17 UTC

Howto: Mercurial to Subversion migration

Hello
I am commiter in the Apache Wave project which was accepted into the Apache
incubator. We already migrated our issues from the googlecode to the Jira
and the next step is migration of the source code into the Apache SVN from
Mercurial. I tried to google for information on mercurial to svn migration
but couldn't find any simple (or even any working) solution. It would be a
great help to our migration effort if someone from the Subversion team can
advice on the best way to handle this.
Thanks
Yuri Zelikov

RE: Howto: Mercurial to Subversion migration

Posted by Andreas Tscharner <an...@metromec.ch>.
[snip]
> > http://mercurial.selenic.com/wiki/ConvertExtension
> 
> I'm reading that page. It seems to support subversion->hg, not the
> reverse. it can convert "Mercurial" repositories to Mercurial
> repositories. hg to other formats is not mentioned.

That is correct. That page indicates that the extension is <anything> -> hg. I have read (like I said on my first mail: I haven't try that myself) that it works also the other way around somewhere else, most probably on stackoverflow...

Best regards/Freundliche Grüsse
Wenzel Metromec AG
	Andreas Tscharner
-- 
Andreas Tscharner, Development
Wenzel Metromec AG, Rheinfelsstrasse 1, CH-7007 Chur, Switzerland
phone:          +41 (0)81 257 07 00
fax:            +41 (0)81 257 07 01
e-mail:         mailto:andreas.tscharner@metromec.ch 
www:            http://www.metromec.ch


CT-Dienstleistungen neu bei Wenzel Metromec
=====================================

Haben Sie einen Prototyp ohne Zeichnung oder Konstruktionsmodell?
Suchen Sie in Ihren Bauteilen Materialschäden, Risse und Poren?
Dann sind unsere neuen Dienstleistungen im Bereich der Computertomographie die perfekte Lösung für Ihre Anforderungen!

Testen Sie uns und unsere neue WENZEL exaCT Anlage.
Zögern Sie nicht und nehmen Sie noch heute mit uns Kontakt auf.
mailto:ct@metromec.ch?subject=CT-Dienstleistungen


Re: Howto: Mercurial to Subversion migration

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Mon, May 16, 2011 at 2:41 AM, Andreas Tscharner
<an...@metromec.ch> wrote:
>> I am commiter in the Apache Wave project which was accepted
>> into the Apache incubator. We already migrated our issues
>> from the googlecode to the Jira and the next step is
>> migration of the source code into the Apache SVN from
>> Mercurial. I tried to google for information on mercurial to
>> svn migration but couldn't find any simple (or even any
>> working) solution. It would be a great help to our migration
>> effort if someone from the Subversion team can advice on the
>> best way to handle this.
>
> Mercurial comes bundled with the ConvertExtension. This extension accepts a Mercurial repo as source and SVN as destination. Having said that, I have never tried it, but you might give it a shot. Details are here:
> http://mercurial.selenic.com/wiki/ConvertExtension

I'm reading that page. It seems to support subversion->hg, not the
reverse. it can convert "Mercurial" repositories to Mercurial
repositories. hg to other formats is not mentioned.

> Best regards/Freundliche Grüsse
> Wenzel Metromec AG
>        Andreas Tscharner
> --
> Andreas Tscharner, Development
> Wenzel Metromec AG, Rheinfelsstrasse 1, CH-7007 Chur, Switzerland
> phone:          +41 (0)81 257 07 00
> fax:            +41 (0)81 257 07 01
> e-mail:         mailto:andreas.tscharner@metromec.ch
> www:            http://www.metromec.ch
>
>
> CT-Dienstleistungen neu bei Wenzel Metromec
> =====================================
>
> Haben Sie einen Prototyp ohne Zeichnung oder Konstruktionsmodell?
> Suchen Sie in Ihren Bauteilen Materialschäden, Risse und Poren?
> Dann sind unsere neuen Dienstleistungen im Bereich der Computertomographie die perfekte Lösung für Ihre Anforderungen!
>
> Testen Sie uns und unsere neue WENZEL exaCT Anlage.
> Zögern Sie nicht und nehmen Sie noch heute mit uns Kontakt auf.
> mailto:ct@metromec.ch?subject=CT-Dienstleistungen
>
>

RE: Howto: Mercurial to Subversion migration

Posted by Andreas Tscharner <an...@metromec.ch>.
> I am commiter in the Apache Wave project which was accepted 
> into the Apache incubator. We already migrated our issues 
> from the googlecode to the Jira and the next step is 
> migration of the source code into the Apache SVN from 
> Mercurial. I tried to google for information on mercurial to 
> svn migration but couldn't find any simple (or even any 
> working) solution. It would be a great help to our migration 
> effort if someone from the Subversion team can advice on the 
> best way to handle this.

Mercurial comes bundled with the ConvertExtension. This extension accepts a Mercurial repo as source and SVN as destination. Having said that, I have never tried it, but you might give it a shot. Details are here:
http://mercurial.selenic.com/wiki/ConvertExtension

Best regards/Freundliche Grüsse
Wenzel Metromec AG
	Andreas Tscharner
-- 
Andreas Tscharner, Development
Wenzel Metromec AG, Rheinfelsstrasse 1, CH-7007 Chur, Switzerland
phone:          +41 (0)81 257 07 00
fax:            +41 (0)81 257 07 01
e-mail:         mailto:andreas.tscharner@metromec.ch 
www:            http://www.metromec.ch


CT-Dienstleistungen neu bei Wenzel Metromec
=====================================

Haben Sie einen Prototyp ohne Zeichnung oder Konstruktionsmodell?
Suchen Sie in Ihren Bauteilen Materialschäden, Risse und Poren?
Dann sind unsere neuen Dienstleistungen im Bereich der Computertomographie die perfekte Lösung für Ihre Anforderungen!

Testen Sie uns und unsere neue WENZEL exaCT Anlage.
Zögern Sie nicht und nehmen Sie noch heute mit uns Kontakt auf.
mailto:ct@metromec.ch?subject=CT-Dienstleistungen


Fwd: Howto: Mercurial to Subversion migration

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
[Accidentally sent privately by accident, meant to send to list.]


---------- Forwarded message ----------
From: Nico Kadel-Garcia <nk...@gmail.com>
Date: Sun, May 15, 2011 at 1:02 PM
Subject: Re: Howto: Mercurial to Subversion migration
To: Yuri Z <ve...@gmail.com>


On Sun, May 15, 2011 at 11:45 AM, Yuri Z <ve...@gmail.com> wrote:
> Hello
> I am commiter in the Apache Wave project which was accepted into the Apache
> incubator. We already migrated our issues from the googlecode to the Jira
> and the next step is migration of the source code into the Apache SVN from
> Mercurial. I tried to google for information on mercurial to svn migration
> but couldn't find any simple (or even any working) solution. It would be a
> great help to our migration effort if someone from the Subversion team can
> advice on the best way to handle this.
> Thanks
> Yuri Zelikov

I'm not a member of the "team", just an experienced user. I was faced
with a similar project, recently, with git, and said "don't make me
hurt you".

The only way I know of is to do an export of your current codebase,
and import it into SVN. The same is true for git. tools to convert svn
to other, more distributed systems are common place. There are
compelling reasons that repository conversion is awkward, much like
converting bread back into wheat.

You might be able to do something useful with "hgsvn", linking a
working mercurial copy writing scripts to step through the mercurial
updates and committing them to a Subversion trunk. Complete
integration of all available mercurial or git properties to
Subversion, including unweaving interwoven and multiply sourced
component histories, though? It's like turning a sweater back into a
sheep's fleece, it's messy, and the sheep will be unhappy.