Initial changes to get Mercurial support.