This revision was automatically updated to reflect the committed changes. Closed by commit rHG7574c8173d5e: wireprotoserver: check if command available before calling it (authored by indygreg, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2716?vs=6710&id=6770 REVISION DETAIL https://phab.mercurial-scm.org/D2716 AFFECTED FILES mercurial/wireprotoserver.py CHANGE DETAILS diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -235,14 +235,14 @@ for chunk in gen: yield chunk - rsp = wireproto.dispatch(repo, proto, cmd) - if not wireproto.commands.commandavailable(cmd, proto): req.respond(HTTP_OK, HGERRTYPE, body=_('requested wire protocol command is not available ' 'over HTTP')) return [] + rsp = wireproto.dispatch(repo, proto, cmd) + if isinstance(rsp, bytes): req.respond(HTTP_OK, HGTYPE, body=rsp) return [] To: indygreg, #hg-reviewers, durin42 Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel