[Bug 5870] New: hgweb spartan style missing template for bookmarks list

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sun May 6 01:40:08 EDT 2018


            Bug ID: 5870
           Summary: hgweb spartan style missing template for bookmarks
           Product: Mercurial
           Version: 4.6
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: hgweb
          Assignee: bugzilla at mercurial-scm.org
          Reporter: zash at zash.se
                CC: mercurial-devel at mercurial-scm.org

$ hg serve --style spartan
listening at http://localhost:8000/ (bound to [::]:8000)
::ffff: - - [06/May/2018 07:30:23] "GET /bookmarks HTTP/1.1" 500 -
::ffff: - - [06/May/2018 07:30:23] Exception happened during
processing request '/bookmarks':
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/server.py", line 102,
in do_POST
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/server.py", line 95,
in do_write
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/server.py", line 186,
in do_hgweb
    for chunk in self.server.application(env, self._start_response):
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py", line
302, in run_wsgi
    for r in self._runwsgi(req, res, repo):
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py", line
422, in _runwsgi
    return getattr(webcommands, cmd)(rctx)
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/webcommands.py", line
677, in bookmarks
    latestentry=lambda **x: entries(latestonly=True, **x))
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py", line
196, in sendtemplate
    self.res.setbodygen(self.tmpl.generate(name, kwargs))
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 869, in
    stream = proc.process(t, mapping)
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 698, in
    func, data = self._load(t)
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 670, in
    x = parse(self._loader(t))
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 840, in
    _('"%s" not in template map') % inst.args[0])
TemplateNotFound: "bookmarks" not in template map

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list