Add hg extension.