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.
8 function CTRepositoryCommitList(repository, commits) {
9 this.name = repository;
10 this.key = repository;
11 this.range = this._displayRange(commits);
12 this.commits = commits;
13 this.expanded = false;
16 CTRepositoryCommitList.prototype._displayRange = function(commits) {
17 return commits.first().revision + " : " + commits.last().revision;
20 CTRepositoryCommitList.transientProperties = ['expanded'];