This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: don't redundantly pass templater with requestcontext (API)
ClosedPublic

Authored by indygreg on Mar 11 2018, 12:24 AM.

Details

Summary

The requestcontenxt has a `tmpl` attribute to access the
templater. We don't need to pass the templater explicitly when
passing a requestcontext instance.

.. api::

Various helper functions in hgweb.webutil no longer accept a
templater instance. Access the templater through the
``web`` argument instead.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Mar 11 2018, 12:24 AM
durin42 accepted this revision.Mar 12 2018, 5:17 PM
This revision is now accepted and ready to land.Mar 12 2018, 5:17 PM
This revision was automatically updated to reflect the committed changes.