[Bug 3910] New: hg serve: Exception "shortlog" not in template map

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sat Apr 27 09:03:38 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3910

          Priority: normal
            Bug ID: 3910
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg serve: Exception "shortlog" not in template map
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: tom_schr at web.de
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.5.4
         Component: Mercurial
           Product: Mercurial

Hi,

after cloning my repo, I've added in .hg/hgrc the following lines:

----------[ .hg/hgrc ]----------
[web]
description="bla bla..."
style=atom
--------------------------------


After running "hg serve" and using http://localhost:8000, when I click on
"Shortlog" I get in my shell the following exception:


-------------------------------------------
Exception happened during processing request '/shortlog':
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/server.py", line 77,
in do_POST
    self.do_write()
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/server.py", line 70,
in do_write
    self.do_hgweb()
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/server.py", line
137, in do_hgweb
    for chunk in self.server.application(env, self._start_response):
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/hgweb_mod.py", line
129, in __call__
    return self.run_wsgi(req)
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/hgweb_mod.py", line
240, in run_wsgi
    content = getattr(webcommands, cmd)(self, req, tmpl)
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/webcommands.py",
line 259, in shortlog
    return changelog(web, req, tmpl, shortlog = True)
  File "/usr/lib64/python2.7/site-packages/mercurial/hgweb/webcommands.py",
line 256, in changelog
    morevars=morevars, lessvars=lessvars)
  File "/usr/lib64/python2.7/site-packages/mercurial/templater.py", line 431,
in __call__
    stream = proc.process(t, mapping)
  File "/usr/lib64/python2.7/site-packages/mercurial/templater.py", line 364,
in process
    return _flatten(runtemplate(self, mapping, self._load(t)))
  File "/usr/lib64/python2.7/site-packages/mercurial/templater.py", line 357,
in _load
    self._cache[t] = compiletemplate(self._loader(t), self)
  File "/usr/lib64/python2.7/site-packages/mercurial/templater.py", line 418,
in load
    raise util.Abort(_('"%s" not in template map') % inst.args[0])
Abort: "shortlog" not in template map
-------------------------------------------

After looking into the directory
/usr/lib64/python2.7/site-packages/mercurial/templates/, there are a different
amount of files in each directory.  For example, in templates/atom there is no
shortlog.tmpl whereas in monoblue or gitweb the file exists.

Used openSUSE 12.1, Linux kernel 3.1.10-1.19, Mercurial 2.5.4, Python 2.7.2

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


More information about the Mercurial-devel mailing list