Changeset View
Changeset View
Standalone View
Standalone View
src/work/ArcanistWorkEngine.php
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | abstract class ArcanistWorkEngine | ||||
abstract protected function getDefaultStartSymbol(); | abstract protected function getDefaultStartSymbol(); | ||||
private function workOnRevision($symbol) { | private function workOnRevision($symbol) { | ||||
$workflow = $this->getWorkflow(); | $workflow = $this->getWorkflow(); | ||||
$api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
$log = $this->getLogEngine(); | $log = $this->getLogEngine(); | ||||
try { | try { | ||||
$revision_symbol = id(new ArcanistRevisionSymbolRef()) | $revision_symbol = (new ArcanistRevisionSymbolRef()) | ||||
->setSymbol($symbol); | ->setSymbol($symbol); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
return; | return; | ||||
} | } | ||||
$workflow->loadHardpoints( | $workflow->loadHardpoints( | ||||
$revision_symbol, | $revision_symbol, | ||||
ArcanistSymbolRef::HARDPOINT_OBJECT); | ArcanistSymbolRef::HARDPOINT_OBJECT); | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | private function workOnRevision($symbol) { | ||||
return $target; | return $target; | ||||
} | } | ||||
private function workOnTask($symbol) { | private function workOnTask($symbol) { | ||||
$workflow = $this->getWorkflow(); | $workflow = $this->getWorkflow(); | ||||
try { | try { | ||||
$task_symbol = id(new ArcanistTaskSymbolRef()) | $task_symbol = (new ArcanistTaskSymbolRef()) | ||||
->setSymbol($symbol); | ->setSymbol($symbol); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
return; | return; | ||||
} | } | ||||
$workflow->loadHardpoints( | $workflow->loadHardpoints( | ||||
$task_symbol, | $task_symbol, | ||||
ArcanistSymbolRef::HARDPOINT_OBJECT); | ArcanistSymbolRef::HARDPOINT_OBJECT); | ||||
Show All 17 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0