Consider moving to in-memory repository
Since about version 0.9.something Mercurial has an a commitctx command that allows performing commit without using a working copy. When Hatta's backend was written, this didn't allow all required operations, like merging. But now we are at 1.5.4, and things have probably changed. This needs some research and profiling.