Sunday, September 6, 2015

Migrate SVN repository to Mercurial repository

  1. Install hgsubversion:
    1. hg clone https://hgsubversion.googlecode.com/hg/  ~\hgsubversion
    2. Add below lines to %USERPROFILE%\Mecurial.INI

      [extensions]
      hgsubversion = ~/hgsubversion/hgsubversion

    3. user hg help hgsubversion to confirm above installation
  2. Clone SVN repository:
    1. hg clone https://hostname/svn/repositoryname, if it requires authentication, use below command instead:
      hg clone svn+https://hostname/svn/repositoryname to type in the username and password at the prompt, or
      use “—config” to specify the username and password like hg clone –config hgsubversion.username=username
      --config hgsubversion.password svn+https://hostname/svn/repositoryname
  3. Upload the repository:
    hg push <remote repository url>

 

Referrence:

http://blogs.atlassian.com/2011/03/goodbye_subversion_hello_mercurial/

No comments:

Post a Comment