Files @ f8daaaf1b1e2
Branch filter:

Location: kallithea/rhodecode/templates/changeset/patch_changeset.html

Mads Kiilerich
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.
%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}