Exemple #1
0
 function testCommit()
 {
     $Svn = new Svn($this->__repos[1]);
     $File = new File($Svn->working . '/branches/demo_1.0.x.x/index.php', true);
     $File->write("this is a new php file with plain text");
     $result = $Svn->run('add', array(dirname($File->pwd())));
     //var_dump($result);
     $result = $Svn->run('commit', array($Svn->working, '--message "Adding index.php"'));
     //var_dump($result);
     $result = $Svn->info('/branches/demo_1.0.x.x/index.php');
     //var_dump($result);
 }