Saltycrane logo

SaltyCrane Blog

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

     Posts tagged "mercurial"

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
... read more »

How to install Mercurial 1.0 on Cygwin

Mercurial 1.0 has been released and I just posted, How to install Mercurial 1.0 on Ubuntu Gutsy (or Hardy). Here are instructions for installing Mercurial 1.0 on Cygwin.

Install Mercurial 1.0
  1. Install Python Easy Install
    $ cd /tmp
    $ wget http://peak.telecommunity.com/dist/ez_setup.py
    $ python ez_setup.py
  2. Install Mercurial 1.0
    $ easy_install -U mercurial
  3. Trying hg version, gives me a ImportError: Permission denied error. Apparently, there is a Eggs/Cygwin problem. To fix it, make the dll files executable:
    $ chmod +x /usr/lib/python2.5/site-packages/mercurial-1.0-py2.5-cygwin-1.5.25-i686.egg/mercurial/*.dll
Try ... ... read more »

How to install Mercurial 1.0 on Ubuntu Hardy

Mercurial 1.0 is out! Mercurial is a next generation "fast, lightweight source control management system" boasting conversions by notable projects NetBeans, OpenJDK, Globulation2, Xine, Mozilla, grml, and OpenSolaris.

From the release notes, version 1.0 has improvements for copying, renaming, removing, and merging. I want to use the most robust version possible, so I decided to upgrade. Ubuntu Gutsy's Mercurial version is 0.9.4, and even Hardy will only have 0.9.5. Luckily, Mercurial 1.0 is easy-installable. That makes it easy to install:


Install Mercurial 1.0
  1. If you don't already have Mercurial 0 ...
... read more »

My software tools list

Inspired by Mark Pilgrim's 2006 Essentials list, below is a list of my current software tools. If you notice a lot of "I switched from ..." statements, keep in mind that I am a programmer who likes shiny things.

Other lists

Contents

... read more »
Created with Django | Hosted by Slicehost