<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Format revisions for display according to repository type"
   href="https://bugs.webkit.org/show_bug.cgi?id=153818#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Format revisions for display according to repository type"
   href="https://bugs.webkit.org/show_bug.cgi?id=153818">bug 153818</a>
              from <span class="vcard"><a class="email" href="mailto:jmarcell&#64;apple.com" title="Jason Marcell &lt;jmarcell&#64;apple.com&gt;"> <span class="fn">Jason Marcell</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=270610&amp;action=diff" name="attach_270610" title="Patch">attachment 270610</a> <a href="attachment.cgi?id=270610&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=270610&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=270610&amp;action=review</a>

<span class="quote">&gt;&gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:127
&gt;&gt; +            linkElement.textContent = this._formatRevisionForDisplay(commit.revisionNumber, branch.repository);
&gt; 
&gt; Is &quot;revision number&quot; the right terminology for git?
&gt; 
&gt; Just curious, no need to update all the naming for this patch even if it's not quite right.</span >

I've thought about that before. With the introduction of Git, the revision is a hash, which you might argue is not a number because we're working with it in string form everywhere. On the other hand, a Git hash is actually a hexadecimal number. I think maybe the term &quot;revision&quot; instead of &quot;revision number&quot; might be more appropriate.

<span class="quote">&gt;&gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:339
&gt;&gt; +    _formatRevisionForDisplay: function (revision, repository)
&gt; 
&gt; Please remove the space after &quot;function&quot;.</span >

Will do.

<span class="quote">&gt;&gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:347
&gt;&gt; +            console.assert(false, &quot;Should not get here; &quot; + repository.name + &quot; did not specify a known VCS type.&quot;);
&gt; 
&gt; WebKit style is to not use else after return. Here is how I would write this:
&gt; 
&gt; console.assert(repository.isSVN || repository.isGit);
&gt; if (repository.isSVN)
&gt;     return &quot;r&quot; + revision;
&gt; // Truncating for display. Git traditionally uses seven characters for a short hash.
&gt; return revision.substr(0, 7);</span >

Thanks. I'll use this.</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>