Changeset 188533 in webkit
- Timestamp:
- Aug 17, 2015 12:45:11 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js
r188478 r188533 154 154 content.className = "commit-history-popover"; 155 155 156 var webkitTrac = Dashboard.Repository.OpenSource.trac; 157 var internalTrac = Dashboard.Repository.Internal.trac; 158 var linesForOpenSource = this._popoverLinesForCommitRange(webkitTrac, queue.branch.openSource, latestProductiveIteration.revision[Dashboard.Repository.OpenSource.name] + 1, webkitTrac.latestRecordedRevisionNumber); 159 for (var i = 0; i != linesForOpenSource.length; ++i) 160 content.appendChild(linesForOpenSource[i]); 161 162 var linesForInternal = []; 163 if (latestProductiveIteration.revision[Dashboard.Repository.Internal.name] && internalTrac.latestRecordedRevisionNumber) 164 var linesForInternal = this._popoverLinesForCommitRange(internalTrac, queue.branch.internal, latestProductiveIteration.revision[Dashboard.Repository.Internal.name] + 1, internalTrac.latestRecordedRevisionNumber); 165 166 if (linesForOpenSource.length && linesForInternal.length) 167 this._addDividerToPopover(content); 168 169 for (var i = 0; i != linesForInternal.length; ++i) 170 content.appendChild(linesForInternal[i]); 156 var shouldAddDivider = false; 157 var sortedRepositories = Dashboard.sortedRepositories; 158 for (var i = 0; i < sortedRepositories.length; ++i) { 159 var repository = sortedRepositories[i]; 160 var trac = repository.trac; 161 var repositoryName = repository.name; 162 var latestProductiveRevisionNumber = latestProductiveIteration.revision[repositoryName]; 163 if (!latestProductiveRevisionNumber || !trac.latestRecordedRevisionNumber) 164 continue; 165 var lines = this._popoverLinesForCommitRange(trac, queue.branch[repositoryName], latestProductiveRevisionNumber + 1, trac.latestRecordedRevisionNumber); 166 var length = lines.length; 167 if (length && shouldAddDivider) 168 this._addDividerToPopover(content); 169 for (var i = 0; i < length; ++i) 170 content.appendChild(lines[i]); 171 shouldAddDivider = shouldAddDivider || length > 0; 172 } 171 173 172 174 var rect = Dashboard.Rect.rectFromClientRect(element.getBoundingClientRect()); -
trunk/Tools/ChangeLog
r188528 r188533 1 2015-08-17 Jason Marcell <jmarcell@apple.com> 2 3 Refactor BuildbotQueueView._presentPopoverForPendingCommits to work more generically with 4 repositories other than "openSource" and "internal". 5 https://bugs.webkit.org/show_bug.cgi?id=147961 6 7 Reviewed by Daniel Bates. 8 9 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js: 10 (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Refactored to work more 11 generically with repositories other than "openSource" and "internal". 12 1 13 2015-08-17 Alexey Proskuryakov <ap@apple.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.