D962: hgweb: in protocol adapter, avoid control reaching end of non-void function
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Oct 8 04:37:54 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe21f274cccea: hgweb: in protocol adapter, avoid control reaching end of non-void function (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D962?vs=2478&id=2523
REVISION DETAIL
https://phab.mercurial-scm.org/D962
AFFECTED FILES
mercurial/hgweb/protocol.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/protocol.py b/mercurial/hgweb/protocol.py
--- a/mercurial/hgweb/protocol.py
+++ b/mercurial/hgweb/protocol.py
@@ -15,6 +15,7 @@
)
from .. import (
+ error,
util,
wireproto,
)
@@ -199,3 +200,4 @@
rsp = rsp.message
req.respond(HTTP_OK, HGERRTYPE, body=rsp)
return []
+ raise error.ProgrammingError('hgweb.protocol internal failure', rsp)
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list