« Previous day (Oct 30, 2008) | Main | Next day (Nov 1, 2008) »

20081031 Friday October 31, 2008

Mercurial Tip: Checking in regularly with uncommitted changes in your clone

NetBeans, like OpenJDK and OpenSolaris, uses the Mercurial distributed version control system. I'm a big fan of of distributed version control. However, one thing that drives me nuts is this error message:

% hg merge
abort: outstanding uncommitted changes
This isn't just going to be a rant - I've finally found a solution which is working extremely well for me. I've suggested it to some other developers who have also reported that it works well for them, so I thought I would share it with you.

The reason I run into this all the time is my preferred style of work:

It turns out that the above requirements are tricky to fulfill with a default setup. Here's what happens.