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

Unified Diff: Tools/GardeningServer/model/ct-commit-list.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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-list-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-list.html
diff --git a/Tools/GardeningServer/model/ct-commit-list.html b/Tools/GardeningServer/model/ct-commit-list.html
deleted file mode 100644
index dc34dcdb589f2cdc6ac1faef182f1ece8e37ec31..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/model/ct-commit-list.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!--
-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-log.html">
-<link rel="import" href="ct-repository-commit-list.html">
-
-<script>
-function CTCommitList(commitLog, revisions) {
- this._initRevisions(revisions);
- this.update(commitLog);
-}
-
-CTCommitList.prototype.update = function(commitLog) {
- this.repositories = [];
- if (!commitLog)
- return;
-
- var allRepositories = commitLog._repositories.names;
- for (var i = 0; i < allRepositories.length; i++) {
- var repository = allRepositories[i];
- if (!this.revisions[repository])
- continue;
-
- var commits = commitLog.range(repository, this.revisions[repository]);
- if (!commits.length)
- continue;
-
- this.repositories.push(new CTRepositoryCommitList(repository, commits));
- }
-};
-
-CTCommitList.prototype._initRevisions = function(repoRevisions) {
- this.revisions = {};
- repoRevisions.forEach(function(repoRevision) {
- var split = repoRevision.split(':');
- var repo = split[0];
- var revision = parseInt(split[1], 10);
- if (revision && repo) {
- if (!this.revisions[repo]) {
- this.revisions[repo] = [revision];
- } else {
- this.revisions[repo].push(revision);
- }
- }
- }.bind(this));
-};
-
-</script>
« no previous file with comments | « Tools/GardeningServer/model/ct-commit.html ('k') | Tools/GardeningServer/model/ct-commit-list-mock.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698