/**
  * Check if this modification set has been modified
  *
  * @param BuildInterface $build The running build.
  * @return Xinc::Core::Plugin::ModificationSet::Result The result of the check.
  */
 public function checkModified(BuildInterface $build)
 {
     $result = new Result();
     $result->setSource(get_class($this));
     try {
         $this->initSvn();
         $strRemoteVersion = $this->getRemoteVersion();
         $strLocalVersion = $this->getLocalVersion();
     } catch (\VersionControl_SVN_Exception $e) {
         $build->error('Test of Subversion failed: ' . $e->getMessage());
         $build->setStatus(BuildInterface::FAILED);
         $result->setStatus(Result::ERROR);
         return $result;
     }
     $result->setRemoteRevision($strRemoteVersion);
     $result->setLocalRevision($strLocalVersion);
     if ($strRemoteVersion !== $strLocalVersion) {
         try {
             $this->getModifiedFiles($result);
             $this->getChangeLog($result);
             if ($this->doUpdate()) {
                 $this->update($result);
             }
             $result->setStatus(Result::CHANGED);
         } catch (Exception $e) {
             $build->error('Processing SVN failed: ' . $e->getMessage());
             $result->setStatus(Result::FAILED);
         }
     }
     return $result;
 }