Update Mercurial repository support to be compatible with Python 3 and remove support for Mercurial < 5.1 (#33784).
Patch by Harald Klimach (Harald Klimach), Olivier Houdas (Olivier Houdas), Jakob Haufe (Jakob Haufe), and Sean Baggaley (Sean Baggaley).
Update Mercurial repository support to be compatible with Python 3 and remove support for Mercurial < 5.1 (#33784).
Patch by Harald Klimach (Harald Klimach), Olivier Houdas (Olivier Houdas), Jakob Haufe (Jakob Haufe), and Sean Baggaley (Sean Baggaley).