1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

54 commits

Author SHA1 Message Date
Chris Jerdonek 977d3f6f8c Make is_commit_id_equal() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek 31d6a4f975 Make resolve_revision() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek 79b64739a9 Make get_revision_sha() a class method. 2019-03-22 00:04:50 -07:00
Chris Jerdonek 22e4be1410 Address review comment: make two methods static. 2019-03-17 00:27:09 -07:00
Chris Jerdonek 12e41eef8b Make VersionControl.get_base_rev_args() a class method. 2019-03-16 01:21:30 -07:00
Chris Jerdonek 3ba489864b Make VersionControl.get_url_rev_and_auth() a class method. 2019-03-16 01:13:25 -07:00
Chris Jerdonek 7f6edbd252
Merge pull request #6130 from cjerdonek/move-get-src-requirement-to-base-class
Move get_src_requirement() to the VersionControl base class
2019-03-14 15:22:54 -07:00
Pi Delport 5f3c56e188 Fix some typos 2019-03-12 21:54:18 +01:00
Chris Jerdonek fdbfde03e1 Implement get_src_requirement() in the VersionControl base class. 2019-03-01 11:01:25 -08:00
Chris Jerdonek 8d45557ff1 Make get_src_requirement() a class method. 2019-01-09 01:52:24 -08:00
Chris Jerdonek 8a036105dd Make get_revision() and get_revision_hash() class methods. 2019-01-09 01:52:19 -08:00
Chris Jerdonek 8a771d027d Make get_remote_url() a class method. 2019-01-09 01:24:16 -08:00
Chris Jerdonek 41f058b4f5 Make _get_subdirectory(), _get_svn_url_rev(), and _is_local_repository() class methods. 2019-01-09 01:24:16 -08:00
Chris Jerdonek 00ae3f594d Make VersionControl.run_command() a class method. 2019-01-09 01:24:16 -08:00
Chris Jerdonek 526ac40e63 Fix freeze to handle Git repos with no remote. 2018-12-21 01:10:06 -08:00
Chris Jerdonek 929c95833d Address review comments. 2018-12-20 17:39:08 -08:00
Chris Jerdonek 1e903eab5a Improve branch detection to work if a tag exists with the same name. 2018-12-16 12:00:42 -08:00
Chris Jerdonek cc9f03dea9 Rename get_branch() to get_current_branch(). 2018-12-16 02:08:27 -08:00
Chris Jerdonek 7e8e706791 Rename VersionControl.get_url() to get_remote_url(). 2018-11-09 22:55:59 -08:00
Chris Jerdonek 07900ed732 Change VersionControl.get_src_requirement() to accept the project name. 2018-11-08 04:24:05 -08:00
Tom Forbes 78371cc950 Redact basic authentication passwords from log messages (#5773)
Redact basic authentication passwords from URLs.
2018-10-19 02:06:10 -07:00
Chris Jerdonek 520df5356f Add misc.make_vcs_requirement_url(). 2018-09-25 01:31:34 -07:00
Chris Jerdonek 59b8a80c9b Remove two unreachable returns in VersionControl.get_src_requirement(). 2018-09-20 00:34:05 -07:00
Chris Jerdonek 06f329059d Update fetch_new() to checkout the correct branch. 2018-08-21 04:00:35 -07:00
Chris Jerdonek b11bf9e978 Change get_revision_sha() to return is_branch. 2018-08-21 04:00:35 -07:00
Chris Jerdonek 8d6f7b56fa Add Git.get_branch(). 2018-08-21 04:00:35 -07:00
Chris Jerdonek d5af777d0d Fix issue #5624: installing a Git ref for installs after the first. 2018-08-08 00:16:57 -07:00
Pradyun Gedam 4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Chris Jerdonek c6e65a0e40 Rename methods to get_netloc_and_auth() and get_url_rev_and_auth().
This addresses review comments by @xavfernandez.
2018-07-19 09:13:05 -07:00
Chris Jerdonek e37a17cc09 Change VersionControl to parse the URL only once to start. 2018-07-15 15:03:06 -07:00
Chris Jerdonek 1f6e1e51ec Make get_url_rev() accept an url argument. 2018-07-11 00:51:38 -07:00
Chris Jerdonek 701d010c02 Implement VersionControl.obtain() in the base class. 2018-07-08 22:46:25 -07:00
Chris Jerdonek 64d205e896 Refactor out a new VersionControl.fetch_new() method. 2018-07-07 21:55:55 -07:00
Jon Dufresne 9c4bd6d5eb Update doc and comment URLs to https where available 2018-06-13 09:00:42 -07:00
Shlomi Fish 508517f0d7 Fix the capitalization of "GitHub". 2018-05-10 18:18:30 +03:00
Dustin Ingram 737dfbfc71
Conditionally fetch the revision if it's a ref 2018-04-03 14:46:33 -05:00
Pradyun Gedam 729990c986
Round 1 of Cleanups (#4844)
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Chris Jerdonek 28061a71c5 Fix test after rebasing another time. 2017-10-05 13:35:14 -07:00
Chris Jerdonek 2a30db5994 Use guard clause. 2017-10-05 10:42:04 -07:00
Chris Jerdonek 4ed70c03d9 Address review comments. 2017-10-05 10:42:04 -07:00
Chris Jerdonek f22c9b265f Change the default revision from origin/master to master. 2017-10-05 10:42:04 -07:00
Chris Jerdonek 15d058edf0 Start using Git.get_revision_sha(). 2017-10-05 10:42:04 -07:00
Chris Jerdonek 85dc157147 Add Git.get_revision_sha() with tests. 2017-10-05 10:40:55 -07:00
Chris Jerdonek 6cbc134ba1 Remove the unused is_ref_commit(). 2017-10-05 10:40:55 -07:00
Chris Jerdonek b8ba25c79f Remove the unused get_refs(). 2017-10-05 10:40:55 -07:00
Chris Jerdonek da30b7007d Address @pradyunsg's review comment. 2017-10-05 02:32:54 -07:00
Chris Jerdonek d646aaca72 Choose a better name, and other clean-ups. 2017-10-05 02:32:54 -07:00
Chris Jerdonek d1b9441595 Change check_version() to accept a commit hash / id. 2017-10-05 02:32:54 -07:00
Chris Jerdonek 3e4f8089d1 Fix check_version() (the tests now pass). 2017-10-05 02:32:54 -07:00
Chris Jerdonek c66ecc73ab Address issue #4507: don't warn when installing from a commit hash (#4674)
* Add failing test for issue #4507.

* Add looks_like_hash() with tests.

* Add news file.

* Address issue #4507 by using looks_like_hash().

* Tweak warning text.

* Fix test after rebasing.

* Remove extra line.
2017-10-05 00:16:10 +02:00