update git and mercurial