WIP: hg(1) support