From f74dafc08c68cc7f0daddf5998b0c38041dc6a43 Mon Sep 17 00:00:00 2001 From: Per Bernhardt Date: Fri, 9 Dec 2011 11:59:22 +0100 Subject: [PATCH] Fixed root identifier: Use global hash instead of local revision --- src/Composer/Repository/Vcs/HgDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/HgDriver.php b/src/Composer/Repository/Vcs/HgDriver.php index 23a4ebebc..39f4994fd 100644 --- a/src/Composer/Repository/Vcs/HgDriver.php +++ b/src/Composer/Repository/Vcs/HgDriver.php @@ -55,7 +55,7 @@ class HgDriver implements VcsDriverInterface { $tmpDir = escapeshellarg($this->tmpDir); if (null === $this->rootIdentifier) { - exec(sprintf('cd %s && hg tip --template "{rev}:{node|short}" --color never', $tmpDir), $output); + exec(sprintf('cd %s && hg tip --template "{node}" --color never', $tmpDir), $output); $this->rootIdentifier = $output[0]; }