Skip to content

Commit

Permalink
Update supported Mercurial schemes with hg+file (#4357)
Browse files Browse the repository at this point in the history
Empirically, pip supports pip [-e] hg+file:///path/to/repo
  • Loading branch information
Omnifarious authored and xavfernandez committed Sep 29, 2017
1 parent 8d96363 commit 72f677f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/reference/pip_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,10 @@ The supported schemes are: ``hg+http``, ``hg+https``,

Here are the supported forms::

[-e] hg+http://hg.example.com/MyProject#egg=MyProject
[-e] hg+https://hg.example.com/MyProject#egg=MyProject
[-e] hg+ssh://hg.example.com/MyProject#egg=MyProject
[-e] hg+http://hg.myproject.org/MyProject#egg=MyProject
[-e] hg+https://hg.myproject.org/MyProject#egg=MyProject
[-e] hg+ssh://hg.myproject.org/MyProject#egg=MyProject
[-e] hg+file:///home/user/projects/MyProject#egg=MyProject

You can also specify a revision number, a revision hash, a tag name or a local
branch name like so::
Expand Down
Empty file added news/4358.doc
Empty file.

3 comments on commit 72f677f

@sjpb
Copy link

@sjpb sjpb commented on 72f677f Nov 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for me on pip 9.0.1 it doesn't, at least using Windows path, e.g.
hg+file://d:\whatever\whatever\testpkg

@pradyunsg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe hg+file://d:/whatever/whatever/testpkg would work?

It's a URL -- I think it should be / not \.

@pfmoore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the correct form is hg+file:///d:/whatever/whatever/testpkg. Note three initial slashes, and all forward slashes. See https://en.wikipedia.org/wiki/File_URI_scheme#Windows

File URLs are a bit messy for Windows files...

Please sign in to comment.