From 0d538f85b64b1c7bc63865d7d68bd86d98400ae5 Mon Sep 17 00:00:00 2001 From: Pierre Augier Date: Fri, 5 Jan 2024 03:27:45 +0100 Subject: [PATCH] fix: Update hg.py to use the commit hash instead of the local identity (#91) Seems to fix https://github.com/pdm-project/pdm/issues/2536 --- src/unearth/vcs/hg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unearth/vcs/hg.py b/src/unearth/vcs/hg.py index ea7a673..f6f96ca 100644 --- a/src/unearth/vcs/hg.py +++ b/src/unearth/vcs/hg.py @@ -46,7 +46,7 @@ def update( def get_revision(self, location: Path) -> str: current_revision = self.run_command( - ["parents", "--template={rev}"], + ["parents", "--template={node}"], log_output=False, stdout_only=True, cwd=location,