| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel='import' href='ct-commit.html'> | 7 <link rel='import' href='ct-commit.html'> |
| 8 <link rel='import' href='ct-repositories.html'> |
| 8 | 9 |
| 9 <script> | 10 <script> |
| 10 | 11 |
| 11 // A simple map of builder to latest processed revision. | 12 // A simple map of builder to latest processed revision. |
| 12 // FIXME: Stop special casing blink. | 13 // FIXME: Stop special casing blink. |
| 13 function CTBuilderRevisions(builderData) { | 14 function CTBuilderRevisions(builderData) { |
| 15 var repositories = new CTRepositories(); |
| 14 Object.keys(builderData, function(builder, builderInfo) { | 16 Object.keys(builderData, function(builder, builderInfo) { |
| 15 this[builder] = CTCommit.createIncomplete('http://src.chromium.org/viewvc/bl
ink?rev={revision}', | 17 this[builder] = { |
| 16 parseInt(builderInfo.revisions['blink'], 10), 'blink'); | 18 "lastUpdateTime": builderInfo.lastUpdateTime, |
| 19 "state": builderInfo.state, |
| 20 "revisions": { } |
| 21 } |
| 22 Object.keys(builderInfo.revisions, function(repository, revision) { |
| 23 this[builder].revisions[repository] = CTCommit.createIncomplete(repositori
es.repositories[repository].repositoryUrl, |
| 24 parseInt(builderInfo.revisions[repository], 10), repository); |
| 25 }.bind(this)); |
| 17 }.bind(this)); | 26 }.bind(this)); |
| 18 } | 27 } |
| 19 | 28 |
| 20 </script> | 29 </script> |
| OLD | NEW |