##// END OF EJS Templates
addrevision: handle code path not producing delta...
addrevision: handle code path not producing delta We would like to be able to exit the delta generation block without a valid delta (for a more flexible control flow). So we make sure we do not expand the "delta" content unless we actually have a delta. We can do it one level lower because 'delta' is initialised at None anyway. Not adding a level to the assignment prevent a line length issue.

File last commit:

r19455:c229a5e7 default
r27179:b481bf14 default
Show More
diffstat.tmpl
8 lines | 341 B | application/x-cheetah | CheetahLexer
<tr>
<td class="diffstat-file"><a href="#l{fileno}.1">{file|escape}</a></td>
<td class="diffstat-total" align="right">{total}</td>
<td class="diffstat-graph">
<span class="diffstat-add" style="width:{addpct}%;">&nbsp;</span>
<span class="diffstat-remove" style="width:{removepct}%;">&nbsp;</span>
</td>
</tr>