Skip to content
Snippets Groups Projects
Commit 8f4d6e57 authored by hahn's avatar hahn
Browse files

task#4364 - do not prefetch all commit messages

parent 91db7a74
No related branches found
No related tags found
1 merge request!3Task4364 branchname chars; do not fetch all commit messages
...@@ -200,6 +200,7 @@ class vcs implements iVcs { ...@@ -200,6 +200,7 @@ class vcs implements iVcs {
/** /**
* helper: cache hash with all branches * helper: cache hash with all branches
* It saves 1.5 sec for reading 300 branches
* @return boolean * @return boolean
*/ */
private function _cacheRemoteBranches() { private function _cacheRemoteBranches() {
...@@ -277,14 +278,14 @@ class vcs implements iVcs { ...@@ -277,14 +278,14 @@ class vcs implements iVcs {
$sBranchKey = $sName; $sBranchKey = $sName;
$this->log(__FUNCTION__ . ' $sBranchKey = '.$sBranchKey); $this->log(__FUNCTION__ . ' $sBranchKey = '.$sBranchKey);
$sMessage = $this->getCommitmessageByBranch($sName, $sRevision); // $sMessage = $this->getCommitmessageByBranch($sName, $sRevision);
$aReturn[$sBranchKey] = array( $aReturn[$sBranchKey] = array(
// 'debug'=> $aTmp, // 'debug'=> $aTmp,
'revision' => $sRevision, 'revision' => $sRevision,
'name' => $sName, 'name' => $sName,
'label' => $sType . ': ' . $sBranch, 'label' => $sType . ': ' . $sBranch,
'type' => $sType, 'type' => $sType,
'message' => $sMessage // 'message' => $sMessage
); );
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment