1
0
Fork 0

Added mercurial's "default" branch as a valid dev version (same as master / trunk).

pull/150/head
Per Bernhardt 2011-12-09 12:01:15 +01:00
parent f74dafc08c
commit d78548cbf9
4 changed files with 3 additions and 5 deletions

View File

@ -34,7 +34,7 @@ class VersionParser
{
$version = trim($version);
if (preg_match('{^(?:master|trunk)(?:[.-]?dev)?$}i', $version)) {
if (preg_match('{^(?:master|trunk|default)(?:[.-]?dev)?$}i', $version)) {
return '9999999-dev';
}
@ -85,7 +85,7 @@ class VersionParser
{
$name = trim($name);
if (in_array($name, array('master', 'trunk'))) {
if (in_array($name, array('master', 'trunk', 'default'))) {
return $this->normalize($name);
}

View File

@ -118,7 +118,6 @@ class HgBitbucketDriver implements VcsDriverInterface
foreach ($tagsData as $tag => $data) {
$this->tags[$tag] = $data['raw_node'];
}
unset($this->tags['tip']);
}
return $this->tags;

View File

@ -126,7 +126,6 @@ class HgDriver implements VcsDriverInterface
preg_match('(^([^\s]+)[\s]+[\d+]:(.*)$)', $tag, $match);
$tags[$match[1]] = $match[2];
}
unset($tags['tip']);
$this->tags = $tags;
}

View File

@ -21,7 +21,7 @@ interface VcsDriverInterface
function getComposerInformation($identifier);
/**
* Return the root identifier (trunk, master, ..)
* Return the root identifier (trunk, master, default/tip ..)
*
* @return string Identifier
*/