hg: add purge extension.