##// END OF EJS Templates
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation....
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation. In some cases when there are no longer any files this caused error since filediff wasn't present. In addition this generated wrong ids since it used a last-defined attribute on a for loop. Fixes #5567

File last commit:

r1255:952cdf08 default
r3830:5bbd362b stable
Show More
pull_request_update.mako
26 lines | 673 B | application/x-mako | MakoHtmlLexer
## -*- coding: utf-8 -*-
Pull request updated. Auto status change to |under_review|
.. role:: added
.. role:: removed
.. parsed-literal::
Changed commits:
* :added:`${len(added_commits)} added`
* :removed:`${len(removed_commits)} removed`
%if not changed_files:
No file changes found
%else:
Changed files:
%for file_name in added_files:
* `A ${file_name} <#${'a_' + h.FID('', file_name)}>`_
%endfor
%for file_name in modified_files:
* `M ${file_name} <#${'a_' + h.FID('', file_name)}>`_
%endfor
%for file_name in removed_files:
* R ${file_name}
%endfor
%endif
.. |under_review| replace:: *"${under_review_label}"*