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

Unified 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: address review comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/model/ct-commit.html ('k') | Tools/GardeningServer/model/ct-commit-log-mock.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/ct-commit-log.html
diff --git a/Tools/GardeningServer/model/ct-commit-log.html b/Tools/GardeningServer/model/ct-commit-log.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a1d9ecbea546d91d04735026044891a81cee1de
--- /dev/null
+++ b/Tools/GardeningServer/model/ct-commit-log.html
@@ -0,0 +1,36 @@
+<!--
+Copyright 2014 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel='import' href='ct-commit.html'>
+
+<script>
+function CTCommitLog() {
+ // FIXME: This should be a map of repo-name to revision log using the same
+ // repo names that auto-sheriff.appspot's json uses.
+
+ // FIXME: Use better feeds.
+ // https://chromium.googlesource.com/chromium/blink/+log/master?format=json
+ // https://chromium.googlesource.com/chromium/chromium/+log/master?format=json
+ // https://code.google.com/feeds/p/skia/svnchanges/basic
+ // https://code.google.com/feeds/p/v8/svnchanges/basic
+ // https://code.google.com/feeds/p/nativeclient/svnchanges/basic
+ this.commits = {};
+}
+
+CTCommitLog.prototype.update = function() {
+ // FIXME: Turn net.js into net.html and import it at the top of this file.
+ return net.xml('http://blink.lc/blink/atom').then(this._processXml.bind(this));
+}
+
+CTCommitLog.prototype._processXml = function(xml) {
+ Array.prototype.forEach.call(xml.getElementsByTagName('entry'), function(logentry) {
+ var author = logentry.getElementsByTagName('author')[0].textContent.trim();
+ var message = logentry.getElementsByTagName('content')[0].textContent.trim();
+ var commit = new CTCommit(author, message);
+ this.commits[commit.revision] = commit;
+ }.bind(this));
+}
+</script>
« no previous file with comments | « Tools/GardeningServer/model/ct-commit.html ('k') | Tools/GardeningServer/model/ct-commit-log-mock.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698