Add typing and clean up code in the Subversion support.
Review Request #13225 — Created Aug. 20, 2023 and submitted
This adds typing throughout the Subversion codebase, ensuring
consistency in calls, results, and dictionary contents.There are some fixes for some bad assumptions in the code, and some
minor changes to the baseSCMTool
class to make
parse_diff_revision()
's parameters consistent with the built-in
SCMTools.Changes will build upon this to improve operation invocation and error
handling, in preparation for the new SSL management.
Unit tests pass.
Summary | ID |
---|---|
8eca61994cffbedb7809fd5721d3ce0eb26a0831 |
Description | From | Last Updated |
---|---|---|
redefinition of unused 'Optional' from line 9 Column: 1 Error code: F811 |
reviewbot | |
redefinition of unused 'TYPE_CHECKING' from line 9 Column: 1 Error code: F811 |
reviewbot | |
These are missing type info. |
david | |
Missing type info. |
david | |
Missing type info. |
david | |
Missing type info. |
david |
- Change Summary:
-
Fixed some typing imports in
reviewboard.scmtools.core
. - Commits:
-
Summary ID b2a7750bba3547ec7e54ec828ddcbd5b647f6a3f 5316c2807ce9f618f6ff7a368b006f7aaa64117e
Checks run (2 succeeded)
- Change Summary:
-
Added missing instance variable types.
- Commits:
-
Summary ID 5316c2807ce9f618f6ff7a368b006f7aaa64117e a1a4b9214ec711122688f7484e0b93ce47ae98a3
Checks run (2 succeeded)
- Change Summary:
-
- Removed the unused
SVNTool.config_dir
, simplifying__init__
andbuild_client
. - Switched to
get_data_dir()
instead of computing the home directory. - Moved the base SVN client class to use the
abc
module for abstract properties/methods. - Added missing typing for
SVNRepositoryInfoDict
andrepository_info()
. - Added missing typing for the
client: pysvn.Client
.
- Removed the unused
- Commits:
-
Summary ID a1a4b9214ec711122688f7484e0b93ce47ae98a3 7542d13d3bc22978ed226bbdb32e07a5d8ce6db5
Checks run (2 succeeded)
- Change Summary:
-
Fixed a bad
build_client()
call. - Commits:
-
Summary ID 7542d13d3bc22978ed226bbdb32e07a5d8ce6db5 db24fd8a32b65917dc3c3b111e1a5e01c13a671d