Mercurial > hg
view mercurial/templates/paper/shortlogentry.tmpl @ 45303:f55c47f41b8e
templates: add __init__.py files to templates/ dirs
This is necessary for them to be loaded with `importlib.resources`,
which we want to do for PyOxidizer and similar. `importlib.resources`
cannot read resources from submodules
(`resources.open_binary('mercurial.templates', 'coal/map')` is not
valid), so we need one `__init__.py` per directory.
Differential Revision: https://phab.mercurial-scm.org/D8854
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 12 Dec 2019 12:41:01 -0800 |
parents | 9acc0360ff67 |
children |
line wrap: on
line source
<tr> <td class="age">{date|rfc822date}</td> <td class="author">{author|person}</td> <td class="description"> <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> {alltags} </td> </tr>