added mercurial support from official hg repo