# HG changeset patch # User Alexander Plavin # Date 2013-07-08 22:08:24 # Node ID c8490dcc5fb3c0da8fe713c07533471752550a7d # Parent c3cdba6e5d7f06935022639bc339a495eb4f2e93 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. diff --git a/mercurial/templates/raw/changelog.tmpl b/mercurial/templates/raw/changelog.tmpl new file mode 100644 --- /dev/null +++ b/mercurial/templates/raw/changelog.tmpl @@ -0,0 +1,5 @@ +{header} +# HG shortlog +# Node ID {node} + +{entries%changelogentry} diff --git a/mercurial/templates/raw/logentry.tmpl b/mercurial/templates/raw/logentry.tmpl new file mode 100644 --- /dev/null +++ b/mercurial/templates/raw/logentry.tmpl @@ -0,0 +1,6 @@ +changeset: {node} +revision: {rev} +user: {author} +date: {date|rfc822date} +summary: {desc} +{branches%branchname}{tags%tagname}{bookmarks%bookmarkname} diff --git a/mercurial/templates/raw/map b/mercurial/templates/raw/map --- a/mercurial/templates/raw/map +++ b/mercurial/templates/raw/map @@ -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 = '' diff --git a/mercurial/templates/raw/search.tmpl b/mercurial/templates/raw/search.tmpl new file mode 100644 --- /dev/null +++ b/mercurial/templates/raw/search.tmpl @@ -0,0 +1,6 @@ +{header} +# HG changesets search +# Node ID {node} +# Query "{query}" + +{entries%changelogentry}