Differential D14044 Diff 33964 src/applications/diffusion/controller/DiffusionRepositoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryController.php
| Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | private function buildPropertiesTable(PhabricatorRepository $repository) { | ||||
| $view->setActionList($actions); | $view->setActionList($actions); | ||||
| $box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
| ->setHeader($header) | ->setHeader($header) | ||||
| ->addPropertyList($view); | ->addPropertyList($view); | ||||
| $info = null; | $info = null; | ||||
| $drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
| if ($drequest->getRefAlternatives()) { | |||||
| // Try to load alternatives. This may fail for repositories which have not | |||||
| // cloned yet. If it does, just ignore it and continue. | |||||
| try { | |||||
| $alternatives = $drequest->getRefAlternatives(); | |||||
| } catch (ConduitClientException $ex) { | |||||
| $alternatives = array(); | |||||
| } | |||||
| if ($alternatives) { | |||||
| $message = array( | $message = array( | ||||
| pht( | pht( | ||||
| 'The ref "%s" is ambiguous in this repository.', | 'The ref "%s" is ambiguous in this repository.', | ||||
| $drequest->getBranch()), | $drequest->getBranch()), | ||||
| ' ', | ' ', | ||||
| phutil_tag( | phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| ▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines | |||||