Differential D18855 Diff 45235 src/applications/diffusion/ssh/DiffusionMercurialServeSSHWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionMercurialServeSSHWorkflow.php
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | if ($command == 'batch') { | ||||
$is_readonly = true; | $is_readonly = true; | ||||
} | } | ||||
if (!$is_readonly) { | if (!$is_readonly) { | ||||
$this->requireWriteAccess(); | $this->requireWriteAccess(); | ||||
$this->didSeeWrite = true; | $this->didSeeWrite = true; | ||||
} | } | ||||
$raw_message = $message['raw']; | return $message['raw']; | ||||
if ($command == 'capabilities') { | |||||
$raw_message = DiffusionMercurialWireProtocol::filterBundle2Capability( | |||||
cspeckmim: From what I remember this method and an associated unit test could probably also be removed | |||||
$raw_message); | |||||
} | |||||
// If we're good, return the raw message data. | |||||
return $raw_message; | |||||
} | } | ||||
protected function raiseWrongVCSException( | protected function raiseWrongVCSException( | ||||
PhabricatorRepository $repository) { | PhabricatorRepository $repository) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'This repository ("%s") is not a Mercurial repository. Use "%s" to '. | 'This repository ("%s") is not a Mercurial repository. Use "%s" to '. | ||||
'interact with this repository.', | 'interact with this repository.', | ||||
$repository->getDisplayName(), | $repository->getDisplayName(), | ||||
$repository->getVersionControlSystem())); | $repository->getVersionControlSystem())); | ||||
} | } | ||||
} | } |
From what I remember this method and an associated unit test could probably also be removed