sapling/mercurial/hgweb
Gregory Szorc 2eb1a12cad hgweb: extract changelist entry generation into own function
I want to supplement changelist entries (used by shortlog and changelog
endpoints) with custom metadata from an extension. i.e. I have extra
per-changeset metadata that I wish to make available to templates so it
can be rendered on hgweb.

To facilitate this, I've extracted the logic for creating a changeset
data structure into its own function, where it can be wrapped by
extensions.

Ideally, hgweb would use the same templater as the command line and have
full access to templatekw.keywords. But that's a lot of work. This patch
gets us some of the benefit without all the work.

Many other hgweb commands could benefit from similar refactorings. I'm
going to wait to see how this patch is received before I go crazy on
extracting inline functions.
2015-01-06 20:14:52 -08:00
..
__init__.py hgweb: make hgweb.hgweb a unified interface to hgweb/hgwebdir 2010-04-26 11:03:40 -05:00
common.py hgweb: refresh hgweb.repo on phase change (issue4061) 2014-09-27 21:59:55 +09:00
hgweb_mod.py merge with stable 2014-09-29 17:23:38 -05:00
hgwebdir_mod.py templater: introduce templatepaths for getting paths searched for templates 2014-09-28 16:57:37 +02:00
protocol.py wireproto: introduce an abstractserverproto class 2014-03-28 11:10:33 -07:00
request.py hgweb: pass the actual response body to request.response, not just the length 2013-01-15 01:07:03 +01:00
server.py hgweb: send proper HTTP response after uncaught exception 2014-11-28 10:59:02 -08:00
webcommands.py hgweb: extract changelist entry generation into own function 2015-01-06 20:14:52 -08:00
webutil.py hgweb: extract changelist entry generation into own function 2015-01-06 20:14:52 -08:00
wsgicgi.py hgweb.cgi: fix internal WSGI emulation (issue3804) 2013-02-04 23:25:25 +01:00