There's now support for using Mercurial in phing since version 2.15.0 of phing, which was released just a few weeks ago - release notes are at https://www.phing.info/trac/wiki/Users/News/Phing%202.15.0%20released with mercurial specific documentation starting at https://www.phing.info/docs/guide/stable/HgAddTask.html