[PATCH] hgweb: add shortlog and search templates to raw style

Alexander Plavin me at aplavin.ru
Mon Jul 8 17:19:28 CDT 2013


# HG changeset patch
# User Alexander Plavin <me at 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

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}


More information about the Mercurial-devel mailing list