5

Possible Duplicate:
Converting from Mercurial to Subversion

Hi.

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

Thank you.

Community
  • 1
  • 1
Alex Baranosky
  • 48,865
  • 44
  • 102
  • 150
  • Of course, the snarky unhelpful question is "Why would you want to?". Unfortunately, I don't have a really good answer as Subversion has a really different notion of branch than Mercurial does. – Omnifarious Jan 21 '10 at 01:06
  • I want to use some of Subversion's IDE integration powers with RubyMine, that Mercurial and Git don't support. I'd prefer Git, but the IDE integration is ultimately more useful to me. – Alex Baranosky Jan 21 '10 at 01:45
  • Curious indeed.. usually people are moving in the opposite direction. – Ether Jan 21 '10 at 01:52

2 Answers2

7

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
  • 337,827
  • 72
  • 505
  • 443
2

Use hgsubversion?

RyanWilcox
  • 13,890
  • 1
  • 36
  • 60