##// 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
new patch function, and urls schema....
r2996 %if h.is_hg(c.rhodecode_repo):
# ${c.rhodecode_repo.alias.upper()} changeset patch
fix patch view for GIT, don't escape stuff to much
r3273 # User ${c.changeset.author |n}
new patch function, and urls schema....
r2996 # Date ${c.changeset.date}
# Node ID ${c.changeset.raw_id}
${c.parent_tmpl}
don't escape any html in patch view
r3272 ${c.changeset.message |n}
new patch function, and urls schema....
r2996
%elif h.is_git(c.rhodecode_repo):
fix patch view for GIT, don't escape stuff to much
r3273 From ${c.changeset.raw_id} ${c.changeset.date}
From: ${c.changeset.author |n}
new patch function, and urls schema....
r2996 Date: ${c.changeset.date}
fix patch view for GIT, don't escape stuff to much
r3273 Subject: [PATCH] ${c.changeset.message |n}
new patch function, and urls schema....
r2996 ---
%endif
${c.diff|n}