Adapt patches to hg.
Adapt PLIST to hg.