Add method to extract the mercurial commits as xml