4

I have a subversion repository, where each branch is a separate project. I would like to change this architecture, and to gradually move to mercurial. How can I convert a single branch of a subversion repo into an hg repository.

hg version : 1.01

shodanex
  • 14,975
  • 11
  • 57
  • 91
  • 1
    1.01? (from http://mercurial.selenic.com/wiki/WhatsNew#Version_1.0.1_-_2008-05-22 may 2008?). That may be a bit old for that kind of operation, although convert was *just* enhanced in this version! – VonC Mar 09 '10 at 08:46

1 Answers1

4

You could use the Convert Extension (see also this SO question), and convert directly the project/branch you need

hg convert http://url/to/svn/myproject/mybranch
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • +1 , The only time this gets strange is when the trunk happened to move around in the SVN repo. If that happens, you end up with multiple heads. – Tim Post Mar 09 '10 at 08:49
  • Thank you, I though I would have to mess with a filemap file. – shodanex Mar 09 '10 at 09:44