Differential D11541 Diff 27767 src/applications/diffusion/ssh/DiffusionMercurialServeSSHWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionMercurialServeSSHWorkflow.php
| Show All 18 Lines | $this->setArguments( | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'name' => 'command', | 'name' => 'command', | ||||
| 'wildcard' => true, | 'wildcard' => true, | ||||
| ), | ), | ||||
| )); | )); | ||||
| } | } | ||||
| protected function executeRepositoryOperations() { | protected function identifyRepository() { | ||||
| $args = $this->getArgs(); | $args = $this->getArgs(); | ||||
| $path = $args->getArg('repository'); | $path = $args->getArg('repository'); | ||||
| $repository = $this->loadRepository($path); | return $this->loadRepositoryWithPath($path); | ||||
| } | |||||
| protected function executeRepositoryOperations() { | |||||
| $repository = $this->getRepository(); | |||||
| $args = $this->getArgs(); | $args = $this->getArgs(); | ||||
| if (!$args->getArg('stdio')) { | if (!$args->getArg('stdio')) { | ||||
| throw new Exception('Expected `hg ... --stdio`!'); | throw new Exception('Expected `hg ... --stdio`!'); | ||||
| } | } | ||||
| if ($args->getArg('command') !== array('serve')) { | if ($args->getArg('command') !== array('serve')) { | ||||
| throw new Exception('Expected `hg ... serve`!'); | throw new Exception('Expected `hg ... serve`!'); | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||