Пример #1
0
 /**
  * Protected helper method that executes a CVS command, changing
  * to the desired directory before doing so and changing it back
  * after finishing.
  *
  * @param   string cvsCmd
  * @return  string[]
  */
 protected function _execute($cvsCmd)
 {
     $olddir = getcwd();
     chdir(dirname($this->filename));
     $r = parent::_execute($cvsCmd, basename($this->filename));
     chdir($olddir);
     return $r;
 }
Пример #2
0
 /**
  * Protected helper method that executes a CVS command, changing
  * to the desired directory before doing so and changing it back
  * after finishing.
  *
  * @param   string cvsCmd
  * @return  string[]
  */
 protected function _execute($cvsCmd)
 {
     $olddir = getcwd();
     chdir($this->path);
     $r = parent::_execute($cvsCmd);
     chdir($olddir);
     return $r;
 }