This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: inline caching() and port to modern mechanisms
ClosedPublic

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

Details

Summary

We only had one consumer of this simple function. While it could be
a generic function, let's not over abstract the code.

As part of inlining, we port it off wsgirequest, fix some Python 3
issues, and set a response header on our new response object so it
is ready once we start using it to send responses.

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:23 AM
durin42 accepted this revision.Mar 12 2018, 5:07 PM
This revision is now accepted and ready to land.Mar 12 2018, 5:07 PM
This revision was automatically updated to reflect the committed changes.