Example #1
0
 /**
  * Commit the file (needs write access to repository)
  *
  * @param   string comment
  */
 public function commit($comment)
 {
     $f = new TempFile();
     $f->open(FILE_MODE_WRITE);
     $f->writeLine($comment);
     $f->close();
     $return = $this->_execute(sprintf('commit -F %s %s', $f->getURI(), $this->filename));
     $f->unlink();
     return $return;
 }
Example #2
0
 /**
  * Commit the file (needs write access to repository)
  *
  * @param   string comment
  * @see     http://www.cvshome.org/docs/manual/cvs_16.html#SEC124
  */
 public function commit($comment)
 {
     $f = new TempFile();
     $f->open(FILE_MODE_WRITE);
     $f->writeLine($comment);
     $f->close();
     $return = $this->_execute(sprintf('commit -F %s', $f->getURI()));
     // It seems CVS automatically removes the tmp-file after
     // reading it, so we don't need to do so (gives error).
     return $return;
 }