changeset 19429:c8490dcc5fb3

hgweb: add changelog and search templates to raw style This will make testing hgweb search and other things simpler and more concise, as there is no extra HTML code in the raw style.
author Alexander Plavin <me@aplavin.ru>
date Tue, 09 Jul 2013 02:08:24 +0400
parents c3cdba6e5d7f
children 5ec5097b4c0f
files mercurial/templates/raw/changelog.tmpl mercurial/templates/raw/logentry.tmpl mercurial/templates/raw/map mercurial/templates/raw/search.tmpl
diffstat 4 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/raw/changelog.tmpl	Tue Jul 09 02:08:24 2013 +0400
@@ -0,0 +1,5 @@
+{header}
+# HG shortlog
+# Node ID {node}
+
+{entries%changelogentry}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/raw/logentry.tmpl	Tue Jul 09 02:08:24 2013 +0400
@@ -0,0 +1,6 @@
+changeset:   {node}
+revision:    {rev}
+user:        {author}
+date:        {date|rfc822date}
+summary:     {desc}
+{branches%branchname}{tags%tagname}{bookmarks%bookmarkname}
--- a/mercurial/templates/raw/map	Fri Jul 12 16:01:11 2013 +0400
+++ b/mercurial/templates/raw/map	Tue Jul 09 02:08:24 2013 +0400
@@ -1,5 +1,9 @@
 default = 'shortlog'
 shortlog = "'raw' is not a browsable style"
+changelog = changelog.tmpl
+changelogentry = logentry.tmpl
+search = search.tmpl
+searchentry = logentry.tmpl
 mimetype = 'text/plain; charset={encoding}'
 header = ''
 footer = ''
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/raw/search.tmpl	Tue Jul 09 02:08:24 2013 +0400
@@ -0,0 +1,6 @@
+{header}
+# HG changesets search
+# Node ID {node}
+# Query "{query}"
+
+{entries%changelogentry}