D2218: wireprotoserver: rename webproto to httpv1protocolhandler
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Feb 13 03:48:48 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This matches our naming convention for the SSH server's protocol
handler.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2218
AFFECTED FILES
mercurial/wireprotoserver.py
CHANGE DETAILS
diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -105,7 +105,7 @@
return ''.join(chunks)
-class webproto(baseprotocolhandler):
+class httpv1protocolhandler(baseprotocolhandler):
def __init__(self, req, ui):
self._req = req
self._ui = ui
@@ -201,7 +201,7 @@
if cmd not in wireproto.commands:
return None
- proto = webproto(req, repo.ui)
+ proto = httpv1protocolhandler(req, repo.ui)
return {
'cmd': cmd,
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list