HomePhabricator

Support Mercurial "protocaps" wire command

Description

Support Mercurial "protocaps" wire command

Summary:
Ref T13187. See PHI834. Mercurial has somewhat-recently (changeset is from Jan 2018) introduced a new "protocaps" command, that appears in Mercurial 4.7 and possibly before then.

We must explicitly enumerate all protocol commands because you can't decode the protocol without knowing how many arguments the command expects, so enumerate it.

(Also fix an issue where the related error message had an extra apostrophe.)

Test Plan:

  • Ran hg clone ... with client and server on Mercurial 4.7.
  • Before: fatal on unknown "protocaps" command.
  • Midway: better typography in error message.
  • After: clean clone.

Reviewers: amckinley

Maniphest Tasks: T13187

Differential Revision: https://secure.phabricator.com/D19596

Details

Provenance
epriestleyAuthored on Aug 23 2018, 9:59 PM
epriestleyPushed on Aug 23 2018, 10:06 PM
Differential Revision
D19596: Support Mercurial "protocaps" wire command
Parents
rP75a5dd8d8cc0: Add more accessibility labels for screen readers
Branches
Unknown
Tags
Unknown
Tasks
T13187: Plans: 2018 Week 34 Bonus Content
Build Status
Buildable 20653
Build 28067: Run Core Tests