/** * Gets the complete commit-log. * Tries to load it from cache, otherwise an external request is being made. * * @param string make sure this revision is included * @return string, xmlbased log-content */ public function getSvnLogContent($strRevisionToCheck = false) { $strLogContent = false; //anything to load via the cache? if ($this->objConfig->getBitCachingEnabled()) { $strLogContent = $this->getContentFromCache(); } if ($strLogContent === false) { //load the logfile via a system-call $strLogContent = $this->loadLoghistoryViaSvn(); } //if a single revision was passed, make sure it is included if ($strRevisionToCheck !== false) { if (!$this->isSingleRevisionInLogContent($strLogContent, $strRevisionToCheck)) { $strSingleRevision = $this->loadLoghistoryViaSvn($strRevisionToCheck); //validate the single revision $strSingleRevision = $this->extractSingleRevision($strSingleRevision); $strLogContent = $this->mergeSingleRevisionToLog($strLogContent, $strSingleRevision); } } //write back to the cache if ($this->objConfig->getBitCachingEnabled()) { $this->setContentToCache($strLogContent); } return $strLogContent; }