Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

    

Example of hg convert on Ubuntu

Converting a Subversion repository to a Mercurial repository is very easy. Here's an example that uses hg convert to convert a SVN repository (django-tagging) to Mecurial on Ubuntu. I'm using Mercurial 1.3 on Ubuntu 9.04.

  • Install Subversion Python bindings. (This should solve the "Subversion python bindings could not be loaded" error)
    sudo apt-get install python-subversion
  • Enable the "convert" extension. Add the following to your ~/.hgrc file:
    [extensions]
    hgext.convert =
  • Convert:
    hg convert http://django-tagging.googlecode.com/svn/trunk/ django-tagging-hg
  • Update:
    cd django-tagging-hg
    hg update

Post a comment

Required
Required, but not displayed
Optional

Format using Markdown. (No HTML.)
  • Code blocks: prefix each line by at least 4 spaces or 1 tab (and a blank line before and after)
  • Code span: surround with backticks
  • Blockquotes: prefix lines to be quoted with >
  • Links: <URL>
  • Links w/ description: [description](URL)
Created with Django | Hosted by Slicehost