Skip to content

Commit 6d77d7b

Browse files
committed
Use -r=... instead of -r ... for hg
This ensures that the resulting revision can not be misinterpreted as an option.
1 parent 71df02c commit 6d77d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/vcs/mercurial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Mercurial(VersionControl):
3131

3232
@staticmethod
3333
def get_base_rev_args(rev: str) -> List[str]:
34-
return ["-r", rev]
34+
return [f"-r={rev}"]
3535

3636
def fetch_new(
3737
self, dest: str, url: HiddenText, rev_options: RevOptions, verbosity: int

0 commit comments

Comments
 (0)