Mercurial > kallithea
diff rhodecode/templates/changeset/patch_changeset.html @ 2996:ebe3e388bbb3 beta
new patch function, and urls schema.
now rhodecode generates
- diff
- plain diff
- patch files
both for git and hg
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 10 Nov 2012 03:17:24 +0100 |
parents | rhodecode/templates/changeset/raw_changeset.html@32471bd1f4ee |
children | 2976c29f7a04 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rhodecode/templates/changeset/patch_changeset.html Sat Nov 10 03:17:24 2012 +0100 @@ -0,0 +1,17 @@ +%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} + +%elif h.is_git(c.rhodecode_repo): +From 35d9475598be9f807cd800e51212b8f1efbeacd9 Mon Sep 17 00:00:00 2001 +From: ${c.changeset.author} +Date: ${c.changeset.date} +Subject: [PATCH] ${c.changeset.message} +--- + +%endif +${c.diff|n}