First working version for mercurial module