Add typing and clean up some code in the mercurial backend.

Review Request #13601 — Created March 4, 2024 and submitted — Latest diff uploaded

Information

Review Board
release-7.x

Reviewers

This change adds type hints throughout the mercurial implementation, and
cleans up some of the style and comments throughout.

While going through this code I realized that the check_repository
implementation was instantiating HgClient incorrectly with the local
site. I've changed it so that everywhere passes the local site name.

Ran unit tests.

Commits

Files