Files @ c78de39f30fc
Branch filter:

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

Mads Kiilerich
summary: redirect from repo URLs with #branchname to changelog with this branch

This implements partial support for the Mercurial syntax for specifying
revisions so https://secure.rhodecode.org/rhodecode/#beta works both for
pulling with Mercurial and browsing.

This uses javascript, and has a bit of extra support for onhashchange in HTML5 browsers.
%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}