comparison mercurial/wireprotoserver.py @ 35857: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
comparison
equal deleted inserted replaced
35856:ef3a24a023ec 35857:a42455b3dbf8
144 return HGTYPE, util.compengines['zlib'], opts 144 return HGTYPE, util.compengines['zlib'], opts
145 145
146 def iscmd(cmd): 146 def iscmd(cmd):
147 return cmd in wireproto.commands 147 return cmd in wireproto.commands
148 148
149 def call(repo, req, cmd): 149 def callhttp(repo, req, cmd):
150 p = webproto(req, repo.ui) 150 p = webproto(req, repo.ui)
151 151
152 def genversion2(gen, engine, engineopts): 152 def genversion2(gen, engine, engineopts):
153 # application/mercurial-0.2 always sends a payload header 153 # application/mercurial-0.2 always sends a payload header
154 # identifying the compression engine. 154 # identifying the compression engine.