Differential D18769 Diff 45040 src/applications/diffusion/conduit/DiffusionExistsQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionExistsQueryConduitAPIMethod.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | protected function getSVNResult(ConduitAPIRequest $request) { | ||||
return (bool)$refs; | return (bool)$refs; | ||||
} | } | ||||
protected function getMercurialResult(ConduitAPIRequest $request) { | protected function getMercurialResult(ConduitAPIRequest $request) { | ||||
$repository = $this->getDiffusionRequest()->getRepository(); | $repository = $this->getDiffusionRequest()->getRepository(); | ||||
$commit = $request->getValue('commit'); | $commit = $request->getValue('commit'); | ||||
list($err, $stdout) = $repository->execLocalCommand( | list($err, $stdout) = $repository->execLocalCommand( | ||||
'id --rev %s', | 'id --rev %s', | ||||
$commit); | hgsprintf('%s', $commit)); | ||||
return !$err; | return !$err; | ||||
} | } | ||||
} | } |