Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
| Show First 20 Lines • Show All 722 Lines • ▼ Show 20 Lines | final public function setWorkingDirectory($working_directory) { | ||||
| $this->workingDirectory = $working_directory; | $this->workingDirectory = $working_directory; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final public function getWorkingDirectory() { | final public function getWorkingDirectory() { | ||||
| return $this->workingDirectory; | return $this->workingDirectory; | ||||
| } | } | ||||
| final private function setParentWorkflow($parent_workflow) { | private function setParentWorkflow($parent_workflow) { | ||||
| $this->parentWorkflow = $parent_workflow; | $this->parentWorkflow = $parent_workflow; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final protected function getParentWorkflow() { | final protected function getParentWorkflow() { | ||||
| return $this->parentWorkflow; | return $this->parentWorkflow; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 632 Lines • ▼ Show 20 Lines | final protected function loadRevisionBundleFromConduit( | ||||
| return $this->loadBundleFromConduit( | return $this->loadBundleFromConduit( | ||||
| $conduit, | $conduit, | ||||
| array( | array( | ||||
| 'revisionIDs' => array($revision_id), | 'revisionIDs' => array($revision_id), | ||||
| )); | )); | ||||
| } | } | ||||
| final private function loadBundleFromConduit( | private function loadBundleFromConduit( | ||||
| ConduitClient $conduit, | ConduitClient $conduit, | ||||
| $params) { | $params) { | ||||
| $future = $conduit->callMethod('differential.querydiffs', $params); | $future = $conduit->callMethod('differential.querydiffs', $params); | ||||
| $diff = head($future->resolve()); | $diff = head($future->resolve()); | ||||
| if ($diff == null) { | if ($diff == null) { | ||||
| throw new Exception( | throw new Exception( | ||||
| ▲ Show 20 Lines • Show All 1,079 Lines • Show Last 20 Lines | |||||