Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPatchWorkflow.php
Show First 20 Lines • Show All 1,124 Lines • ▼ Show 20 Lines | if ($revision_id) { | ||||
'ids' => array($revision_id), | 'ids' => array($revision_id), | ||||
)); | )); | ||||
if ($revisions) { | if ($revisions) { | ||||
$revision = head($revisions); | $revision = head($revisions); | ||||
$rev_auxiliary = idx($revision, 'auxiliary', array()); | $rev_auxiliary = idx($revision, 'auxiliary', array()); | ||||
$phids = idx($rev_auxiliary, 'phabricator:depends-on', array()); | $phids = idx($rev_auxiliary, 'phabricator:depends-on', array()); | ||||
if ($phids) { | if ($phids) { | ||||
$revision_phid = $revision['phid']; | $revision_phid = $revision['phid']; | ||||
$graph = id(new ArcanistDifferentialDependencyGraph()) | $graph = (new ArcanistDifferentialDependencyGraph()) | ||||
->setConduit($this->getConduit()) | ->setConduit($this->getConduit()) | ||||
->setRepositoryAPI($this->getRepositoryAPI()) | ->setRepositoryAPI($this->getRepositoryAPI()) | ||||
->setStartPHID($revision_phid) | ->setStartPHID($revision_phid) | ||||
->addNodes(array($revision_phid => $phids)) | ->addNodes(array($revision_phid => $phids)) | ||||
->loadGraph(); | ->loadGraph(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return $graph; | return $graph; | ||||
} | } | ||||
} | } |
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