Page MenuHomePhabricator

wireprotoserver: rename hgweb.protocol to wireprotoserver (API)
ClosedPublic

Authored by indygreg on Feb 1 2018, 3:19 PM.

Details

Summary

The HTTP wire protocol server / response handler is currently defined
in the hgweb sub-package. That only kind of makes sense. hgweb does
contain most of the HTTP server code. However, hgweb is more tailored
for providing HTTP server and WSGI scaffolding and serving hgweb
requests. The wire protocol is kind of its own beast.

In addition, the code for HTTP and SSH wire protocol handling is
actually pretty small and it needs to stay in sync to ensure parity
between the transport implementations.

We rename mercurial/hgweb/protocol.py to mercurial/wireprotoserver.py.
The new module will eventually become the home of the SSH handler
as well.

.. api::

Content from mercurial.hgweb.protocol has been moved to
mercurial.wireprotoserver.

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.Feb 1 2018, 3:19 PM
durin42 accepted this revision.Feb 1 2018, 5:43 PM
This revision is now accepted and ready to land.Feb 1 2018, 5:43 PM
This revision was automatically updated to reflect the committed changes.