Differential D10585 Diff 25583 src/applications/diffusion/controller/DiffusionCommitTagsController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionCommitTagsController.php
Show All 16 Lines | public function processRequest() { | ||||
$tags = array(); | $tags = array(); | ||||
try { | try { | ||||
$tags = DiffusionRepositoryTag::newFromConduit( | $tags = DiffusionRepositoryTag::newFromConduit( | ||||
$this->callConduitWithDiffusionRequest( | $this->callConduitWithDiffusionRequest( | ||||
'diffusion.tagsquery', | 'diffusion.tagsquery', | ||||
array( | array( | ||||
'commit' => $request->getCommit(), | 'commit' => $request->getCommit(), | ||||
'limit' => $tag_limit + 1))); | 'limit' => $tag_limit + 1, | ||||
))); | |||||
} catch (ConduitException $ex) { | } catch (ConduitException $ex) { | ||||
if ($ex->getMessage() != 'ERR-UNSUPPORTED-VCS') { | if ($ex->getMessage() != 'ERR-UNSUPPORTED-VCS') { | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
$has_more_tags = (count($tags) > $tag_limit); | $has_more_tags = (count($tags) > $tag_limit); | ||||
$tags = array_slice($tags, 0, $tag_limit); | $tags = array_slice($tags, 0, $tag_limit); | ||||
Show All 31 Lines |