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

Unified Diff: Tools/GardeningServer/model/ct-commit.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 | « no previous file | Tools/GardeningServer/model/ct-commit-log.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/ct-commit.html
diff --git a/Tools/GardeningServer/model/ct-commit.html b/Tools/GardeningServer/model/ct-commit.html
new file mode 100644
index 0000000000000000000000000000000000000000..098cf7817fbe63cb9c275813172db38ff82e1477
--- /dev/null
+++ b/Tools/GardeningServer/model/ct-commit.html
@@ -0,0 +1,24 @@
+<!--
+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.
+-->
+
+<script>
+function CTCommit(author, message) {
+ this.author = author;
+ this.message = message;
+ this.revision = this._findRevision();
+ // FIXME: This is a needlessly expensive way to grab the first line.
+ this.summary = this.message.split('\n')[0];
+}
+
+CTCommit.prototype._findRevision = function() {
+ // FIXME: Make this regexp more general.
+ var regexp = /git-svn-id: svn:\/\/svn.chromium.org\/blink\/trunk@(\d+)/;
+ var match = regexp.exec(this.message);
+ if (match)
+ return parseInt(match[1], 10);
+ return null;
+}
+</script>
« no previous file with comments | « no previous file | Tools/GardeningServer/model/ct-commit-log.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698