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

saveWorkingCopy() public method

public saveWorkingCopy ( $commitMsg = '' )
    public function saveWorkingCopy($commitMsg = '')
    {
        $this->executeHgCommand('addremove');
        $this->executeHgCommand("commit -m \"{$commitMsg}\"");
    }

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