mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
2eb1a12cad
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. |
||
---|---|---|
.. | ||
__init__.py | ||
common.py | ||
hgweb_mod.py | ||
hgwebdir_mod.py | ||
protocol.py | ||
request.py | ||
server.py | ||
webcommands.py | ||
webutil.py | ||
wsgicgi.py |