Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
| Show First 20 Lines • Show All 2,244 Lines • ▼ Show 20 Lines | final public function setConduitEngine( | ||||
| $this->conduitEngine = $conduit_engine; | $this->conduitEngine = $conduit_engine; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final public function getConduitEngine() { | final public function getConduitEngine() { | ||||
| return $this->conduitEngine; | return $this->conduitEngine; | ||||
| } | } | ||||
| final protected function newRefQuery(array $refs) { | |||||
| assert_instances_of($refs, 'ArcanistRef'); | |||||
| $query = id(new ArcanistRefQuery()) | |||||
| ->setConduitEngine($this->getConduitEngine()) | |||||
| ->setRefs($refs); | |||||
| if ($this->hasRepositoryAPI()) { | |||||
| $query->setRepositoryAPI($this->getRepositoryAPI()); | |||||
| } | |||||
| $repository_ref = $this->getRepositoryRef(); | |||||
| if ($repository_ref) { | |||||
| $query->setRepositoryRef($repository_ref); | |||||
| } | |||||
| $working_copy = $this->getWorkingCopyIdentity(); | |||||
| if ($working_copy) { | |||||
| $working_ref = $this->newWorkingCopyStateRef(); | |||||
| $query->setWorkingCopyRef($working_ref); | |||||
| } | |||||
| return $query; | |||||
| } | |||||
| final public function getRepositoryRef() { | final public function getRepositoryRef() { | ||||
| $configuration_engine = $this->getConfigurationEngine(); | $configuration_engine = $this->getConfigurationEngine(); | ||||
| if ($configuration_engine) { | if ($configuration_engine) { | ||||
| // This is a toolset workflow and can always build a repository ref. | // This is a toolset workflow and can always build a repository ref. | ||||
| } else { | } else { | ||||
| if (!$this->getConfigurationManager()->getWorkingCopyIdentity()) { | if (!$this->getConfigurationManager()->getWorkingCopyIdentity()) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||