Add preliminary Mercurial support