[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


https://bz.mercurial-scm.org/show_bug.cgi?id=5870

            Bug ID: 5870
           Summary: hgweb spartan style missing template for bookmarks
                    list
           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:127.0.0.1 - - [06/May/2018 07:30:23] "GET /bookmarks HTTP/1.1" 500 -
::ffff:127.0.0.1 - - [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
    self.do_write()
  File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/server.py", line 95,
in do_write
    self.do_hgweb()
  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
generate
    stream = proc.process(t, mapping)
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 698, in
process
    func, data = self._load(t)
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 670, in
_load
    x = parse(self._loader(t))
  File "/usr/lib/python2.7/dist-packages/mercurial/templater.py", line 840, in
load
    _('"%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