Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionTagListController.php
| Show All 22 Lines | protected function processDiffusionRequest(AphrontRequest $request) { | ||||
| if ($drequest->getSymbolicCommit()) { | if ($drequest->getSymbolicCommit()) { | ||||
| $is_commit = true; | $is_commit = true; | ||||
| $params['commit'] = $drequest->getSymbolicCommit(); | $params['commit'] = $drequest->getSymbolicCommit(); | ||||
| } else { | } else { | ||||
| $is_commit = false; | $is_commit = false; | ||||
| } | } | ||||
| switch ($repository->getVersionControlSystem()) { | |||||
| case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | |||||
| $tags = array(); | $tags = array(); | ||||
| try { | break; | ||||
| default: | |||||
| $conduit_result = $this->callConduitWithDiffusionRequest( | $conduit_result = $this->callConduitWithDiffusionRequest( | ||||
| 'diffusion.tagsquery', | 'diffusion.tagsquery', | ||||
| $params); | $params); | ||||
| $tags = DiffusionRepositoryTag::newFromConduit($conduit_result); | $tags = DiffusionRepositoryTag::newFromConduit($conduit_result); | ||||
| } catch (ConduitException $ex) { | break; | ||||
| if ($ex->getMessage() != 'ERR-UNSUPPORTED-VCS') { | |||||
| throw $ex; | |||||
| } | |||||
| } | } | ||||
| $tags = $pager->sliceResults($tags); | $tags = $pager->sliceResults($tags); | ||||
| $content = null; | $content = null; | ||||
| if (!$tags) { | if (!$tags) { | ||||
| $content = $this->renderStatusMessage( | $content = $this->renderStatusMessage( | ||||
| pht('No Tags'), | pht('No Tags'), | ||||
| $is_commit | $is_commit | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||