Page MenuHomeIsabelle/Phabricator
Diviner Phabricator Tech Docs DiffusionMercurialWireProtocol

final class DiffusionMercurialWireProtocol
Phabricator Technical Documentation (Diffusion)

This class is not documented.

Methods

public static function getCommandArgs($command)

This method is not documented.
Parameters
$command
Return
wild

public static function isReadOnlyCommand($command)

This method is not documented.
Parameters
$command
Return
wild

public static function isReadOnlyBatchCommand($cmds)

This method is not documented.
Parameters
$cmds
Return
wild

public static function filterBundle2Capability($capabilities)

If the server version is running 3.4+ it will respond with 'bundle2' capability in the format of "bundle2=(url-encoding)". Until we manage to properly package up bundles to send back we disallow the client from knowing we speak bundle2 by removing it from the capabilities listing.

The format of the capabilities string is: "a space separated list of strings representing what commands the server supports"

Parameters
string$capabilities- The string of capabilities to strip the bundle2 capability from. This is expected to be the space-separated list of strings resulting from the querying the 'capabilities' command.
Return
stringThe resulting space-separated list of capabilities which no longer contains the 'bundle2' capability. This is meant to replace the original $body to send back to client.