Commit 88a473fc upgraded mercurial, made it use python3, and removed support for hg-git, breaking graalvm8. Since hg-git does not officially support python3 or the new version of mercurial, this patch uses mercurial_4. Closes #76527.