diff --git a/pipenv/patched/notpip/_internal/vcs/mercurial.py b/pipenv/patched/notpip/_internal/vcs/mercurial.py index a143e765f9..f25e55cd66 100644 --- a/pipenv/patched/notpip/_internal/vcs/mercurial.py +++ b/pipenv/patched/notpip/_internal/vcs/mercurial.py @@ -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() @@ -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):