Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: sitescripts/hg/template/issue_commit_comment.tmpl

Issue 29336790: Issue 3674 - Add a hg hook that references commits in issues (Closed)
Left Patch Set: Address comments Created Feb. 22, 2016, 8:04 p.m.
Right Patch Set: Don't use RegexObject.match Created Feb. 23, 2016, 9:39 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « sitescripts/hg/bin/update_issues.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {% if changes|length > 1 -%} 1 {% if changes|length > 1 -%}
2 Some commits referencing this issue have landed: 2 Some commits referencing this issue have landed:
3 {%- else -%} 3 {%- else -%}
4 A commit referencing this issue has landed: 4 A commit referencing this issue has landed:
5 {%- endif %} 5 {%- endif %}
6 {%- for change in changes %} 6 {%- for change in changes %}
7 {% if loop.length > 1 %}- {% endif -%} 7 {% if loop.length > 1 %}- {% endif -%}
8 https://hg.adblockplus.org/{{repository_name}}/rev/{{change.hex()|truncate(12, T rue, "")}} 8 https://hg.adblockplus.org/{{repository_name}}/rev/{{change.hex()[:12]}}
Felix Dahlke 2016/02/22 20:09:50 I'm not particularly proud of this one but: 1. To
Wladimir Palant 2016/02/23 10:41:31 How about: {{change.hex()[:12]}} ;)
Felix Dahlke 2016/02/23 16:22:59 Well I never, didn't occur to me for some reason t
9 {%- endfor -%} 9 {%- endfor -%}
LEFTRIGHT

Powered by Google App Engine
This is Rietveld