views:

473

answers:

2

Hi.

Does anyone know of a relatively painless way to migrate a Mercurial repo to a fresh Subversion repo?

Thank you.

+5  A: 

You may want to use the Convert Extension.

hg convert --dest-type svn mercurial_repo_name svn_repo_name

This extension is distributed with Mercurial and understands CVS, Subversion, Git, Darcs, Monotone, Bazaar, GNU Arch, Perforce and Mercurial as source formats and Mercurial and Subversion as destination formats.

Daniel Vassallo
I tried running this at the command line and Mercurial doesn't recognize the command... hmmm...
Alex Baranosky
@Alex: Did you enable the extension?
gizmo
Yes, make sure it is enabled in your .hgrc file.
Daniel Vassallo
@gizmo: ahh yes, I see. Thank you for the help
Alex Baranosky
+1  A: 

Use hgsubversion?

RyanWilcox