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

Unified Diff: sitescripts/hg/template/issue_commit_comment.tmpl

Issue 29336790: Issue 3674 - Add a hg hook that references commits in issues (Closed)
Patch Set: Don't use RegexObject.match Created Feb. 23, 2016, 9:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/hg/bin/update_issues.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/hg/template/issue_commit_comment.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/sitescripts/hg/template/issue_commit_comment.tmpl
@@ -0,0 +1,9 @@
+{% if changes|length > 1 -%}
+Some commits referencing this issue have landed:
+{%- else -%}
+A commit referencing this issue has landed:
+{%- endif %}
+{%- for change in changes %}
+{% if loop.length > 1 %}- {% endif -%}
+https://hg.adblockplus.org/{{repository_name}}/rev/{{change.hex()[:12]}}
+{%- endfor -%}
« no previous file with comments | « sitescripts/hg/bin/update_issues.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld