Skip to content

Commit

Permalink
Align method name and signature to invocation
Browse files Browse the repository at this point in the history
in requirementslib/models/vcs.py
  • Loading branch information
kr1 committed Oct 24, 2018
1 parent 3bb4678 commit 518176b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pipenv/patched/notpip/_internal/vcs/mercurial.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ def get_url(self, location):

def get_revision(self, location):
current_revision = self.run_command(
['parents', '--template={rev}'],
['parents', '--template={node}'],
show_stdout=False, cwd=location).strip()
return current_revision

def get_revision_hash(self, location):
def get_revision_sha(self, location, rev=None):
# the rev arg is not currently used for mercurial
current_rev_hash = self.run_command(
['parents', '--template={node}'],
show_stdout=False, cwd=location).strip()
Expand All @@ -91,7 +92,7 @@ def get_src_requirement(self, dist, location):
egg_project_name = dist.egg_name().split('-', 1)[0]
if not repo:
return None
current_rev_hash = self.get_revision_hash(location)
current_rev_hash = self.get_revision_sha(location)
return '%s@%s#egg=%s' % (repo, current_rev_hash, egg_project_name)

def is_commit_id_equal(self, dest, name):
Expand Down

0 comments on commit 518176b

Please sign in to comment.