Skip to content

After uprade pip to version 23.3+ cant use hg+http with current branch #12371

@MarchenkoRoman

Description

@MarchenkoRoman

Description

After uprade pip to version 23.3+ can`t isntall my package from repository with current branch
if i use older version or without branch works fine, olready use tag and hash instead of branch

Expected behavior

pip will work correctly

pip version

23.3

Python version

3.9

OS

Linux

How to Reproduce

try to install from hg repository using branch or hash
for example
pip install hg+http://mylink/hg/folder/[email protected]

Output

Collecting hg+http://mylink/hg/folder/[email protected]
Cloning hg http://mylink/hg/folder/mypackage (to revision 0.1.3) to /tmp/pip-req-build-hmzsjinv
Running command hg clone --noupdate --quiet http://mylink/hg/folder/mypackage /tmp/pip-req-build-hmzsjinv

Running command hg update --quiet -r=0.1.3
hg: parse error at 0: not a prefix: =
(=0.1.3
^ here)
error: subprocess-exited-with-error

× hg update --quiet -r=0.1.3 did not run successfully.
│ exit code: 255
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× hg update --quiet -r=0.1.3 did not run successfully.
│ exit code: 255
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: vcspip's interaction with version control systems like git, svn and bzrtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions