D1966: wireprotoserver: rename call to callhttp

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Thu Feb 1 17:56:49 EST 2018


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

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.



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


More information about the Mercurial-devel mailing list