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

createTag() public method

public createTag ( $tagName )
    public function createTag($tagName)
    {
        return $this->executeHgCommand("tag {$tagName}");
    }

Usage Example

Example #1
0
 public function testSaveWorkingCopy()
 {
     $vcs = new Hg();
     $vcs->createTag(new \Liip\RMT\Version('2.0.0'));
     $this->assertCount(1, $vcs->getAllModificationsSince('2.0.0'));
     exec('rm file2');
     $vcs->saveWorkingCopy('Remove the second file');
     $this->assertCount(2, $vcs->getAllModificationsSince('2.0.0'));
 }