pypy/pip-CVE-2023-5752.patch
Charalampos Stratakis 6dea96f391 Security fix for CVE-2023-5752 for the bundled pip wheel
- Resolves: rhbz#2250771
2024-05-01 00:03:10 +02:00

14 lines
432 B
Diff

diff --git a/pip/_internal/vcs/mercurial.py b/pip/_internal/vcs/mercurial.py
index d9b58cf..4747cf6 100644
--- a/pip/_internal/vcs/mercurial.py
+++ b/pip/_internal/vcs/mercurial.py
@@ -38,7 +38,7 @@ class Mercurial(VersionControl):
@staticmethod
def get_base_rev_args(rev):
- return [rev]
+ return ["--rev={}".format(rev)]
def export(self, location, url):
# type: (str, HiddenText) -> None