<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Teach dashboard code to compare non-integer revisions."
href="https://bugs.webkit.org/show_bug.cgi?id=152345#c27">Comment # 27</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Teach dashboard code to compare non-integer revisions."
href="https://bugs.webkit.org/show_bug.cgi?id=152345">bug 152345</a>
from <span class="vcard"><a class="email" href="mailto:dbates@webkit.org" title="Daniel Bates <dbates@webkit.org>"> <span class="fn">Daniel Bates</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=152345#c26">comment #26</a>)
<span class="quote">> > [...]
> > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:82
> > + var indexToBeLaterThan = this.indexOfRevision(revision);
> > + function selectCommitsLaterThanRevision(commit, index, allCommits) {
> > + return index > indexToBeLaterThan;
> > + }
> > + var commits = this._commitsOnBranch(branchName, selectCommitsLaterThanRevision.bind(this));
> > + return commits;
>
> Then we can implement this as:
>
> [...]
> return this._commitsOnBranch(branchName, null, indexToBeLaterThan + 1);</span >
err, I meant to write:
return this._commitsOnBranch(branchName, indexToBeLaterThan + 1);
<span class="quote">>
> > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:93
> > + var indexOfFirstRevision = this.indexOfRevision(firstRevision);
> > + var indexOfLastRevision = this.indexOfRevision(lastRevision);
> > + function selectCommitsInRange(commit, index, allCommits) {
> > + return index >= indexOfFirstRevision && index <= indexOfLastRevision;
> > + }
> > + var commits = this._commitsOnBranch(branchName, selectCommitsInRange.bind(this));
> > + return commits;
>
> And we can implement this as:
>
> [...]
> return this._commitOnBranch(branchName, null, indexOfFirstRevision,
> indexOfLastRevision);
> </span >
err, I meant to write:
return this._commitsOnBranch(branchName, indexOfFirstRevision, indexOfLastRevision);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>