Mercurial > hg
changeset 40139:17223d8e7d75
wireprotov2: raise ProgrammingError on unknown action
Suggested by @durin42 in review of D4923.
Differential Revision: https://phab.mercurial-scm.org/D4935
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 10 Oct 2018 23:19:42 -0700 |
parents | b5bf3dd6ec5b |
children | 46f9b1d2daf0 |
files | mercurial/wireprotov2peer.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/wireprotov2peer.py Mon Oct 08 17:24:28 2018 -0700 +++ b/mercurial/wireprotov2peer.py Wed Oct 10 23:19:42 2018 -0700 @@ -337,6 +337,11 @@ return elif action == 'noop': return + elif action == 'responsedata': + # Handled below. + pass + else: + raise error.ProgrammingError('action not handled: %s' % action) if frame.requestid not in self._requests: raise error.ProgrammingError(