 Issue 29336790:
  Issue 3674 - Add a hg hook that references commits in issues  (Closed)
    
  
    Issue 29336790:
  Issue 3674 - Add a hg hook that references commits in issues  (Closed) 
  | 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()|truncate(12, True, "")}} | 
| 
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
 | 
| +{%- endfor -%} |