Patchwork D1966: wireprotoserver: rename call to callhttp

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 10:56 p.m.
Message ID <7efec64db20fbd2a96d24c72fff4d1d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/27161/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 10:56 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG86196f91fee8: wireprotoserver: rename call to callhttp (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1966?vs=5046&id=5091

REVISION DETAIL
  https://phab.mercurial-scm.org/D1966

AFFECTED FILES
  mercurial/hgweb/hgweb_mod.py
  mercurial/wireprotoserver.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -146,7 +146,7 @@ 
 def iscmd(cmd):
     return cmd in wireproto.commands
 
-def call(repo, req, cmd):
+def callhttp(repo, req, cmd):
     p = webproto(req, repo.ui)
 
     def genversion2(gen, engine, engineopts):
diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -368,7 +368,7 @@ 
                     raise ErrorResponse(HTTP_NOT_FOUND)
                 if cmd in perms:
                     self.check_perm(rctx, req, perms[cmd])
-                return wireprotoserver.call(rctx.repo, req, cmd)
+                return wireprotoserver.callhttp(rctx.repo, req, cmd)
             except ErrorResponse as inst:
                 # A client that sends unbundle without 100-continue will
                 # break if we respond early.