# HG changeset patch # User Gregory Szorc # Date 1539238782 25200 # Node ID 17223d8e7d7583ad7bb2664e07c78c507a100a67 # Parent b5bf3dd6ec5bb7c38f96b6db6172760ada037447 wireprotov2: raise ProgrammingError on unknown action Suggested by @durin42 in review of D4923. Differential Revision: https://phab.mercurial-scm.org/D4935 diff -r b5bf3dd6ec5b -r 17223d8e7d75 mercurial/wireprotov2peer.py --- 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(