Patchwork D2218: wireprotoserver: rename webproto to httpv1protocolhandler

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2018, 3:48 a.m.
Message ID <differential-rev-PHID-DREV-s3qxsal5qdyk2geerbp6-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27797/
State Superseded
Headers show

Comments

phabricator - Feb. 13, 2018, 3:48 a.m.
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




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

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,