Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: Tools/GardeningServer/model/ct-commit-log.html

Issue 404463003: Move commit list and builder latest revisions up to ct-unexpected-failures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
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
4 found in the LICENSE file.
5 -->
6
7 <link rel='import' href='ct-commit.html'>
8
9 <script>
10 function CTCommitLog() {
11 // FIXME: This should be a map of repo-name to revision log using the same
12 // repo names that auto-sheriff.appspot's json uses.
13
14 // FIXME: Use better feeds.
15 // https://chromium.googlesource.com/chromium/blink/+log/master?format=json
16 // https://chromium.googlesource.com/chromium/chromium/+log/master?format=json
17 // https://code.google.com/feeds/p/skia/svnchanges/basic
18 // https://code.google.com/feeds/p/v8/svnchanges/basic
19 // https://code.google.com/feeds/p/nativeclient/svnchanges/basic
20 this.commits = {};
21 }
22
23 CTCommitLog.prototype.update = function() {
24 // FIXME: Turn net.js into net.html and import it at the top of this file.
25 return net.xml('http://blink.lc/blink/atom').then(this._processXml.bind(this)) ;
26 }
27
28 CTCommitLog.prototype._processXml = function(xml) {
abarth-chromium 2014/07/21 06:36:26 _processXml -> _processXML ?
ojan 2014/07/21 19:58:04 I really dislike that style. That's how to get abo
29 Array.prototype.forEach.call(xml.getElementsByTagName('entry'), function(logen try) {
michaelpg 2014/07/21 07:28:48 nit: can we keep to an 80-char line length? Array
ojan 2014/07/21 19:58:04 I'm not a huge fan of our hybrid blink/chromium st
30 var author = logentry.getElementsByTagName('author')[0].textContent.trim();
31 var message = logentry.getElementsByTagName('content')[0].textContent;
abarth-chromium 2014/07/21 06:36:26 Why trim the author but not the message?
ojan 2014/07/21 19:58:04 This was just copy-paste from the old code. I didn
32 var commit = new CTCommit(author, message);
33 this.commits[commit.revision] = commit;
34 }.bind(this));
35 }
36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698