Liip\RMT\VCS\Hg::getTags PHP Method

getTags() public method

public getTags ( )
    public function getTags()
    {
        $tags = $this->executeHgCommand('tags');
        $tags = array_map(function ($t) {
            $parts = explode(' ', $t);
            return $parts[0];
        }, $tags);
        return $tags;
    }

Usage Example

Beispiel #1
0
 public function testCreateTag()
 {
     $vcs = new Hg();
     $vcs->createTag(new \Liip\RMT\Version('2.0.0'));
     $this->assertEquals(array("tip", "2.0.0", "1.1.0", "1.0.0"), $vcs->getTags());
 }