Ian Lewis Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development.
About Me...

How to Hide Inactive Branches by Default with Mercurial

mercurial usually shows inactive branches when running "hg branches" but that's kind of annoying if you have lots of old inactive branches. So I recently set up my personal .hgrc to hide inactive branches by creating an alias. [alias] branches = branches -a Normally you get this kind of output. ian@laptop:~/src/prj$ hg branches default 166[...]

Importing an svn repository into mercurial

Recently I've been forking svn repositories by converting them to mercurial repositories and uploading them to bitbucket. It's fairly easy with the mercurial convert extension. Convert is distributed with mercurial so if you have a recent version all you should have to do is put the following in your hgrc. [extensions] hgext.convert= Converting a repository over http by ru[...]

Using Mercurial MQ

I recently started using mercurial's mq extension at work as I found myself switching between changes a lot. I often had to set changes I was currently working on aside to do a merge or fix something that was more urgent. The mq extension makes that possible by managing patches and allowing you to put away changes into the patch queue. mq is included in mercurial's distribution by default bu[...]

Using mercurial on windows with cygwin

So for the longest time, well, about 5 months, I have used the mercurial package in cygwin as my mercurial at work where I run windows on my desktop. I use cygwin as my terminal on windows because it's unix like and window's command line is a piece of shit. No sane command/path completion nothing. Scripting is a nightmare etc. Anyway, the reason I used it was because I was under the false imp[...]

Mercurial and named branches and hgweb

Mercurial is a nice distributed SCM system written in python which I have been using at work and at on oss projects for a little while now. Mercurial allows three types of branching, cloning, named branches, and local branches. Each of these has it's uses but I have only really used cloning and named branches in my own development. Cloning simply allows you to create a new branch of a reposi[...]

hg email and gmail

I just set up my e-mail settings with Mercurial so that I can e-mail patches via my Gmail account. I have Debian installed on my machine which has exim installed by default so it was pretty easy to set up. I'm not terribly versed at setting up mailing agents so I basically followed these instructions on the Debian Wiki. After getting that set up it's easy to set up Mercurial to use exim4 sinc[...]

Learning GTK2.0

Today I've been playing around with writing programs in GTK2.0. This has been on my todo list for a really long time, almost since college, but I've never got around to it. I've revived my old project gorbital and decided to rewrite it using GTK2.0. I originally wrote it in C++ using gtkmm for GTK1.0. But GTK1.0 is long since dead. Even my beloved Gnucash has finally made it to the world of G[...]

Mercurial part2

After a rather (too) long discussion on IRC about mercurial with some vocal advocates of distributed systems I thought I might qualify what I said in my previous blog entry. Since I learned about mercurial I started reading about it and tried it out a little bit. The benefits are obvious but I didn't feel like it represented a huge shift from my previous workflows since I haven't had huge pr[...]

Mercurial

I just had the pleasure of watching this video of a Google Tech Talk by Bryan O'Sullivan on the Mercurial project. Mercurial is a distributed version control system which seems to have some nice benefits. While I haven't used it yet, or any other distributed version control system for that matter, It seems like it would fit well with open source developers and projects because you can maintai[...]