Skip to content

Commit

Permalink
Use -r=... instead of -r ... for hg
Browse files Browse the repository at this point in the history
This ensures that the resulting revision can not be misinterpreted as an
option.
  • Loading branch information
pradyunsg committed Oct 1, 2023
1 parent 71df02c commit 6d77d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/vcs/mercurial.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Mercurial(VersionControl):

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

def fetch_new(
self, dest: str, url: HiddenText, rev_options: RevOptions, verbosity: int
Expand Down

0 comments on commit 6d77d7b

Please sign in to comment.