Anton Shestakov <engored@ya.ru>, Tue, 05 May 2015 23:19:13 +0800
viewer: only show time without cache in .asc (graph) view
templates/results.html
Permissions: -rw-r--r--
<title>hgperfcheck
{% if changesets %} (rev
{{ changesets[0]['rev'] }} and earlier)
{% end %}</title> background-color: silver; <a href="/results.html">back to tip
</a> {% set prevrev = changesets[0]['rev'] + 120 if changesets else None %} {% if prevrev %}<a href="?rev=rev({{ prevrev }})">prev page
</a>{% end %} {% set nextrev = changesets[-1]['rev'] - 1 if changesets else None %} {% if nextrev > -1 %}<a href="?rev=rev({{ nextrev }})">next page
</a>{% end %} {% for mark, desc in marks.items() %} <td title="{{ desc }}">{{ mark }}</td> {% for cset in changesets %} <td>{{ cset['rev'] }}</td> <td><a href="http://selenic.com/hg/rev/{{ cset['node'] }}">{{ cset['node'][:12] }}<a/></td> <td>{{ 'M' if len(cset['parents']) > 1 else '' }}</td> <td>{{ cset['branch'] }}</td> <td>{{ ', '.join(cset['tags']) }}</td> <td title="{{ cset['user'] }}">{{ cset['user'].partition(' <')[0] }}</td> <td class="hint"><div title="{{ cset['desc'] }}">{{ cset['desc'].partition('\n')[0] }}</div></td> {% set result = results.get(cset['node'], {}) %} {% set value, color = result.get(mark, (None, None)) %} <span style="{% if color is not None %}background-color: rgb{{ str(color) }}{% end %}"> </span> <span title="{{ value }}">{{ '{:.2f}s'.format(value) if value is not None else 'N/A' }}</span> <a href="/results.html">back to tip
</a> {% if prevrev %}<a href="?rev=rev({{ prevrev }})">prev page
</a>{% end %} {% if nextrev > -1 %}<a href="?rev=rev({{ nextrev }})">next page
</a>{% end %}