hgtemplates: only show first line of commit message in pushlog view (bug 666750)
authorGregory Szorc <gps@mozilla.com>
Wed, 04 Nov 2015 11:43:46 -0800
changeset 3238 5685133c102fab561db6e885f4ca2beeb5b9f8cf
parent 3237 0dbd1cc40eaf4f7c26dcf84c86c5c4b86643fad5
child 3239 1efd6d5743749fc65256cd518b6309e897b30fd5
push id1219
push usergszorc@mozilla.com
push dateWed, 04 Nov 2015 19:44:14 +0000
treeherderversion-control-tools@5685133c102f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs666750, 4
hgtemplates: only show first line of commit message in pushlog view (bug 666750) Simple code change. Similar change already received review in bug 4 years ago and was never landed.
hgtemplates/gitweb_mozilla/map
--- a/hgtemplates/gitweb_mozilla/map
+++ b/hgtemplates/gitweb_mozilla/map
@@ -279,17 +279,17 @@ shortlogentry = '
       <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">diff</a><br/>
       <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">browse</a>
     </td>
     <td>{node|short}<br/><i class="age">{date|isodate}</i></td>
     <td><strong><cite>{author|person}</cite> - {desc|strip|firstline|escape|buglink}</strong> <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span></td>
   </tr>'
 pushinfo = '<cite>{user}<br/><span class="date">{date|date}</span></cite>'
 mergehidden = '<br/>← {count} merge changesets <a class="expand hideid{id}" href="#">[Collapse]</a>'
-pushlogentry = '<tr class="pushlogentry parity{parity} {hidden} id{id}"><td>{push%pushinfo}</td><td class="age"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td><td><strong>{author|person} &mdash; {desc|strip|escape|buglink|addbreaks}</strong> <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span>{mergerollup%mergehidden}</td></tr>\n'
+pushlogentry = '<tr class="pushlogentry parity{parity} {hidden} id{id}"><td>{push%pushinfo}</td><td class="age"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td><td><strong>{author|person} &mdash; {desc|strip|firstline|escape|buglink|addbreaks}</strong> <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span>{mergerollup%mergehidden}</td></tr>\n'
 filelogentry = '
   <tr class="parity{parity}">
     <td class="link">
       <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">diff</a><br/>
       <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">browse</a><br/>
       <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
     </td>
     <td class="age">{node|short}<br/><i>{date|isodate}</i>{rename%filelogrename}</td>