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

getAllModificationsSince() public method

public getAllModificationsSince ( $tag, $color = true, $noMergeCommits = false )
    public function getAllModificationsSince($tag, $color = true, $noMergeCommits = false)
    {
        $noMergeCommits = $noMergeCommits ? '--no-merges' : '';
        $modifications = $this->executeHgCommand("log --template '{node|short} {desc}\n' -r tip:{$tag} {$noMergeCommits}");
        array_pop($modifications);
        // remove the last commit since it is the one described by the tag
        return $modifications;
    }

Usage Example

Beispiel #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'));
 }