Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialRevisionDetailView.php
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | foreach ($this->getActions() as $action) { | ||||
| ->setHref(idx($action, 'href')) | ->setHref(idx($action, 'href')) | ||||
| ->setWorkflow(idx($action, 'sigil') == 'workflow') | ->setWorkflow(idx($action, 'sigil') == 'workflow') | ||||
| ->setRenderAsForm(!empty($action['instant'])) | ->setRenderAsForm(!empty($action['instant'])) | ||||
| ->setUser($user) | ->setUser($user) | ||||
| ->setDisabled(idx($action, 'disabled', false)); | ->setDisabled(idx($action, 'disabled', false)); | ||||
| $actions->addAction($obj); | $actions->addAction($obj); | ||||
| } | } | ||||
| $properties = new PhabricatorPropertyListView(); | $properties = id(new PhabricatorPropertyListView()) | ||||
| ->setUser($user) | |||||
| ->setObject($revision); | |||||
| $status = $revision->getStatus(); | $status = $revision->getStatus(); | ||||
| $local_vcs = $this->getDiff()->getSourceControlSystem(); | $local_vcs = $this->getDiff()->getSourceControlSystem(); | ||||
| $next_step = null; | $next_step = null; | ||||
| if ($status == ArcanistDifferentialRevisionStatus::ACCEPTED) { | if ($status == ArcanistDifferentialRevisionStatus::ACCEPTED) { | ||||
| switch ($local_vcs) { | switch ($local_vcs) { | ||||
| case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: | case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: | ||||
| case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: | case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||