Mercurial > hg
diff mercurial/wireprotov2peer.py @ 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 | ed4ebbb98ca0 |
children | 94b0d0f996e1 |
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(