{# vim: set et ts=8 sts=4 sw=4 ai: #} {% extends "page.html" %} {% block content %}
{% if rev_a and rev_b %}

Comparing {{rev_a}} to {{rev_b}}

{% endif %} {% if revision %}

Commit {{revision}}

{% endif %} {% if patchset %} {% for file in patchset %} {# file.path #} {# file.added #} {# file.removed #} {% for hunk in file %} {% for i,lines in hunk_helper[(file.source_file, file.target_file, hunk.source_start, hunk.source_length)].items() -%} {% for l in lines %} {%-if withlinenumbers -%} {%- endif -%} {%- endfor -%}{# l in lines #} {%- endfor %}{# lines in hunk_helper #} {# {% for l in hunk.source_lines()-%} {% endfor %} {% for l in hunk.target_lines()-%} {% endfor %} #} {% endfor %}{# hunk in file #} {% endfor %}{# file in patchset #}
{{url_map[file.path][0]}}
@@ {{hunk.source_start}},{{hunk.source_length}} {{hunk.target_start}},{{hunk.target_length}}@@
{{l.source}} {{l.target}}{{l.type}} {{l.value | replace('\n', '')}}
{{l.source_line_no}} {{l.target_line_no}} {{l.line_type}} {{l.value}}
{{l.source_line_no}} {{l.target_line_no}} {{l.line_type}} {{l.value}}
{% endif %} {% endblock %}