Add additional validation for Git and SVN repos.
Review Request #13223 — Created Aug. 18, 2023 and submitted
We have two cases that have come up semi-frequently, tripping up users
when they're trying to configure their repositories:
- Users were putting in a raw file path to an SVN repository, where it
needs afile://
URL.- When configuring a Git repo, they'd enter their SVN clone address but
leave out the raw file URL. This one is especially confusing because
a lot of people expect Git to just work, and don't read our
documentation about why it doesn't.This change adds new repository form subclasses that can validate these
conditions.
- Verified that I wasn't able to save an SVN repo pointing to a bare
filesystem path, but could with file:// and https:// - Verified that trying to save a Git repo with a path but no raw file
URL would fail. - Made sure that saving with a raw file URL or Git repos on a hosting
service still worked correctly. - Ran unit tests.
Summary | ID |
---|---|
5c5dc96592a51b47e86c245a192aa15e3e05de85 |
Description | From | Last Updated |
---|---|---|
continuation line unaligned for hanging indent Column: 23 Error code: E131 |
reviewbot | |
Missing Version Added. |
chipx86 | |
This is missing typing. |
chipx86 | |
We should also allow file: schemes. |
chipx86 | |
Let's link to the relevant docs here. |
chipx86 | |
Missing Version Added. |
chipx86 | |
This is missing typing. |
chipx86 | |
Missing blank line. |
chipx86 | |
Should add a -> None so we can opt into typing. Also, let's add tests for supported schemes, just to … |
chipx86 | |
Should add a -> None so we can opt into typing. Also, let's add tests for other schemes, just to … |
chipx86 | |
No . in unit test docstrings. |
chipx86 | |
Leftover debug output. |
chipx86 | |
line too long (83 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
line too long (80 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
line too long (80 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
local variable 'x' is assigned to but never used Column: 9 Error code: F841 |
reviewbot | |
local variable 'y' is assigned to but never used Column: 9 Error code: F841 |
reviewbot | |
line too long (80 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
line too long (80 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
This should be typed as Dict[str, Any]. |
chipx86 | |
This should be typed as Dict[str, Any]. |
chipx86 |
- Commits:
-
Summary ID c02bbc612cfd8372fe475ff44978ac978e1e0c8b e8e46b1bfd3ee093f855ba77e0f88d7880a04464
Checks run (2 succeeded)
- Commits:
-
Summary ID e8e46b1bfd3ee093f855ba77e0f88d7880a04464 ac2dc56a105bce0353bc5a0474b9bba953c374dd