From 9a1789960898c51c4959a0e5992d6d4140cbbbcc Mon Sep 17 00:00:00 2001 From: Per Bernhardt Date: Thu, 23 Feb 2012 12:07:57 +0100 Subject: [PATCH] Although the tag "tip" does not provide a valid package version (see VersionParser), the implementation of HgDriver::getSource uses tip as the prefered label for the branch that tip is currently on. This is not a problem at first hand because you can install a new package correctly with "tip" as source reference. The problem is that any new revision on that branch won't lead to a new package, because the package will always refer to the same reference "tip". Therefore you cannot update your project to the new version with "composer update". --- src/Composer/Repository/Vcs/HgDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Repository/Vcs/HgDriver.php b/src/Composer/Repository/Vcs/HgDriver.php index 1e73104f9..1ca21948d 100644 --- a/src/Composer/Repository/Vcs/HgDriver.php +++ b/src/Composer/Repository/Vcs/HgDriver.php @@ -130,6 +130,7 @@ class HgDriver extends VcsDriver implements VcsDriverInterface $tags[$match[1]] = $match[2]; } } + unset($tags['tip']); $this->tags = $tags; }