Patchwork hgweb: add shortlog and search templates to raw style

login
register
mail settings
Submitter Alexander Plavin
Date July 8, 2013, 10:19 p.m.
Message ID <98be00b565385f6a759a.1373321968@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1808/
State Superseded, archived
Headers show

Comments

Alexander Plavin - July 8, 2013, 10:19 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373321304 -14400
#      Tue Jul 09 02:08:24 2013 +0400
# Node ID 98be00b565385f6a759aaefb625650acd3499b31
# Parent  15282566f6a0f2121bd0e19ed38cfb939aa99fa2
hgweb: add shortlog and search templates to raw style

Patch

diff -r 15282566f6a0 -r 98be00b56538 mercurial/templates/raw/map
--- a/mercurial/templates/raw/map	Mon Jul 01 22:33:56 2013 +0400
+++ b/mercurial/templates/raw/map	Tue Jul 09 02:08:24 2013 +0400
@@ -1,5 +1,8 @@ 
 default = 'shortlog'
-shortlog = "'raw' is not a browsable style"
+shortlog = shortlog.tmpl
+shortlogentry = shortlogentry.tmpl
+search = search.tmpl
+searchentry = shortlogentry.tmpl
 mimetype = 'text/plain; charset={encoding}'
 header = ''
 footer = ''
diff -r 15282566f6a0 -r 98be00b56538 mercurial/templates/raw/search.tmpl
--- /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%shortlogentry}
diff -r 15282566f6a0 -r 98be00b56538 mercurial/templates/raw/shortlog.tmpl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/raw/shortlog.tmpl	Tue Jul 09 02:08:24 2013 +0400
@@ -0,0 +1,5 @@ 
+{header}
+# HG shortlog
+# Node ID {node}
+
+{entries%shortlogentry}
diff -r 15282566f6a0 -r 98be00b56538 mercurial/templates/raw/shortlogentry.tmpl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/raw/shortlogentry.tmpl	Tue Jul 09 02:08:24 2013 +0400
@@ -0,0 +1,5 @@ 
+changeset:   {node}
+user:        {author}
+date:        {date|rfc822date}
+summary:     {desc}
+{branches%branchname}{tags%tagname}{bookmarks%bookmarkname}