| Index: appengine_apps/test_results/static-dashboards/ui.js
|
| diff --git a/appengine_apps/test_results/static-dashboards/ui.js b/appengine_apps/test_results/static-dashboards/ui.js
|
| index 5a4c5b6e576459b10f2f672c7dae1c8ba53405a2..d06a757aaddc304318ce1749a231ef121d0195aa 100644
|
| --- a/appengine_apps/test_results/static-dashboards/ui.js
|
| +++ b/appengine_apps/test_results/static-dashboards/ui.js
|
| @@ -175,8 +175,15 @@ ui.html._revisionLink = function(resultsKey, testResults, index)
|
| var currentRevision = parseInt(testResults[resultsKey][index], 10);
|
| var previousRevision = parseInt(testResults[resultsKey][index + 1], 10);
|
|
|
| + // TODO(ojan): chromium/src is the only repository supported by crrev.com.
|
| + // Once blink is supported, send all code down the isChrome codepath.
|
| var isChrome = resultsKey == results.CHROME_REVISIONS;
|
| - var singleUrl = 'http://src.chromium.org/viewvc/' + (isChrome ? 'chrome' : 'blink') + '?view=rev&revision=' + currentRevision;
|
| +
|
| + var singleUrl;
|
| + if (isChrome)
|
| + singleUrl = 'https://crrev.com/' + currentRevision;
|
| + else
|
| + singleUrl = 'http://src.chromium.org/viewvc/blink?view=rev&revision=' + currentRevision;
|
|
|
| if (currentRevision == previousRevision)
|
| return 'At <a href="' + singleUrl + '">r' + currentRevision + '</a>';
|
| @@ -184,9 +191,17 @@ ui.html._revisionLink = function(resultsKey, testResults, index)
|
| if (currentRevision - previousRevision == 1)
|
| return '<a href="' + singleUrl + '">r' + currentRevision + '</a>';
|
|
|
| - var rangeUrl = 'http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog' +
|
| - (isChrome ? '' : '_blink') + '.html?url=/trunk' + (isChrome ? '/src' : '') +
|
| - '&range=' + (previousRevision + 1) + ':' + currentRevision + '&mode=html';
|
| + var rangeUrl;
|
| + if (isChrome) {
|
| + // Intentionally do not increment previous revision. This rev works the
|
| + // way gitiles does (exclude the start of the range) instead of the way
|
| + // the perf dashboard below does.
|
| + rangeUrl = '../../revision_range?start=' + previousRevision + '&end=' + currentRevision;
|
| + } else {
|
| + rangeUrl = 'http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk' +
|
| + '&range=' + (previousRevision + 1) + ':' + currentRevision + '&mode=html';
|
| + }
|
| +
|
| return '<a href="' + rangeUrl + '">r' + (previousRevision + 1) + ' to r' + currentRevision + '</a>';
|
| }
|
|
|
|
|