public function update($path = '.')
    {

        if(!$this->svnEnabled)
            return false;

        $user = escapeshellarg($this->svnUsername);
        $pw = escapeshellarg($this->svnPassword);

        $creds = !empty($this->svnUsername) && !empty($this->svnPassword) ? "--username {$user} --password {$pw}" : "";

        $cmd = "svn update {$creds} -r HEAD ".PATH_ROOT.'/'.$path;
        $this->Logger->debug($cmd);

        $updateRes = trim(shell_exec($cmd));

        if(empty($updateRes))
            return false;

        $this->Logger->debug($updateRes);

        return true;
    }
public function update($path = '.')
    {

        if(!$this->svnEnabled)
            return false;

        $user = escapeshellarg($this->svnUsername);
        $pw = escapeshellarg($this->svnPassword);

        $creds = !empty($this->svnUsername) && !empty($this->svnPassword) ? "--username {$user} --password {$pw}" : "";

        $cmd = "svn update {$creds} -r HEAD ".PATH_ROOT.'/'.$path;
        $this->Logger->debug($cmd);

        $updateRes = trim(shell_exec($cmd));

        if(empty($updateRes))
            return false;

        $this->Logger->debug($updateRes);

        return true;
    }
public function update ( $ path = '.' ) { if ( ! $ this -> svnEnabled ) return false ; $ user = escapeshellarg ( $ this -> svnUsername ) ; $ pw = escapeshellarg ( $ this -> svnPassword ) ; $ creds = ! empty ( $ this -> svnUsername ) && ! empty ( $ this -> svnPassword ) ? "--username {$user} --password {$pw}" : "" ; $ cmd = "svn update {$creds} -r HEAD " . PATH_ROOT . '/' . $ path ; $ this -> Logger -> debug ( $ cmd ) ; $ updateRes = trim ( shell_exec ( $ cmd ) ) ; if ( empty ( $ updateRes ) ) return false ; $ this -> Logger -> debug ( $ updateRes ) ; return true ; }
performs an svn update of the path provided

@param string $path
@return bool status of update
performs an svn update of the path provided