Add hg collapse extension.