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.

Changes between revision 1 and 2

orig
1
2

Commits

Summary ID Author
Add typing and clean up some code in the mercurial backend.
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. Testing Done: Ran unit tests.
3d5b2cebdba222e898f525f70dbd470ae7b27424 David Trowbridge
Add typing and clean up some code in the mercurial backend.
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. Testing Done: Ran unit tests.
277e1685f09aa67de7d52d9a4975c2fb43e444a2 David Trowbridge
reviewboard/scmtools/hg.py
Loading...