changeset 35897:a42455b3dbf8

wireprotoserver: rename call to callhttp In the context of multiple handlers, call() is ambiguous. Differential Revision: https://phab.mercurial-scm.org/D1966
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 31 Jan 2018 10:41:27 -0800
parents ef3a24a023ec
children 1b76a9e0a9de
files mercurial/hgweb/hgweb_mod.py mercurial/wireprotoserver.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Wed Jan 31 11:09:07 2018 -0800
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Jan 31 10:41:27 2018 -0800
@@ -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.
--- a/mercurial/wireprotoserver.py	Wed Jan 31 11:09:07 2018 -0800
+++ b/mercurial/wireprotoserver.py	Wed Jan 31 10:41:27 2018 -0800
@@ -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):