Commit 7e49dca
authored
Require the revision to be percent-encoded in VSC URLs (#13407)
This changes how the revision part is handled in version control URLs.
When a branch name contains special characters such as '@' or '#', they
must be percent-encoded in URLs. This is backwards incompatible, but
the fallout should be negligible. In most cases, it will result in an
one-time error. It's extremely unlikely that people have percent-encoding
in their branch names (which could be misinterpreted).
It is also extremely unlikely that someone has both branches with and
without percent-escaping names that could cause an unnoticed behavioural
change.1 parent e351bbb commit 7e49dca
File tree
3 files changed
+16
-1
lines changed- news
- src/pip/_internal/vcs
- tests/unit
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| 401 | + | |
400 | 402 | | |
401 | 403 | | |
402 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
394 | 399 | | |
395 | 400 | | |
396 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
397 | 407 | | |
398 | 408 | | |
399 | 409 | | |
| |||
0 commit comments