Update Mercurial to version 3.1