My Mercurial clone has become incredibly slow, presumably due to on-disk fragmentation. Is there a way to optimize it? The obvious way it to make a new clone, then copy my MQ, saved bundles, hgrc, etc, to the new clone and delete the old one. But it seems like someone might have run into this problem before and made an extension to do it? If the manifest gets particularly large then it can result in slow performance. Mercurial has an alternative repository format - generaldelta - that can often result in much smaller manifests. You can check the size of your manifest using: ls -lh .hg/store/