Convert subversion repository to mercurial

February 18, 2010

Mercurial is decentralised version control. I chose to use it because of speed (compared to svn) and decentralized nature.

To convert an existing svn repository to hg repo we can use Convert extension. First you need to configure it by adding appropriate tags to .hgrc file  (read about this in the convert extension page).   The location of the .hgrc file depends on your operating system, and where to find it  windows you can read here.

When everything is set up, open your console window, cd to the dir where your checked out repository resides and just type

hg convert nameOfYourSvnRepDir

This will convert your subeversion repo to directory named nameOfYourSvnRepDir-hg

Happy hg’ing!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: