Rough sketch of Mercurial support