##// END OF EJS Templates
new patch function, and urls schema....
new patch function, and urls schema. now rhodecode generates - diff - plain diff - patch files both for git and hg

File last commit:

r2996:ebe3e388 beta
r2996:ebe3e388 beta
Show More
patch_changeset.html
17 lines | 437 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}
%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}