##// END OF EJS Templates
diff_block: fix link to file revisions...
diff_block: fix link to file revisions Pull requests would link to file revisions in the wrong repo. That was obviously only visible when merging between different repos - but then it would link to a non-existing revision. diff_block is apparently used pull-request-style with the 'b' revision of the diff shown first. It thus also has to point at the 'other' repo which is where the other revision can be found.

File last commit:

r3273:91679a50 beta
r3517:f8daaaf1 beta
Show More
patch_changeset.html
17 lines | 423 B | text/html | HtmlLexer
%if h.is_hg(c.rhodecode_repo):
# ${c.rhodecode_repo.alias.upper()} changeset patch
# User ${c.changeset.author |n}
# Date ${c.changeset.date}
# Node ID ${c.changeset.raw_id}
${c.parent_tmpl}
${c.changeset.message |n}
%elif h.is_git(c.rhodecode_repo):
From ${c.changeset.raw_id} ${c.changeset.date}
From: ${c.changeset.author |n}
Date: ${c.changeset.date}
Subject: [PATCH] ${c.changeset.message |n}
---
%endif
${c.diff|n}