Changeset View
Changeset View
Standalone View
Standalone View
src/repository/graph/view/ArcanistCommitGraphSetTreeView.php
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | foreach ($set->getDisplayChildSets() as $child_set) { | ||||
$child_view->setParentView($set_view); | $child_view->setParentView($set_view); | ||||
$set_view->addChildView($child_view); | $set_view->addChildView($child_view); | ||||
} | } | ||||
return $set_view; | return $set_view; | ||||
} | } | ||||
private function newSetView(ArcanistCommitGraphSet $set) { | private function newSetView(ArcanistCommitGraphSet $set) { | ||||
return id(new ArcanistCommitGraphSetView()) | return (new ArcanistCommitGraphSetView()) | ||||
->setSet($set); | ->setSet($set); | ||||
} | } | ||||
private function getStateRef($hash) { | private function getStateRef($hash) { | ||||
$state_refs = $this->getStateRefs(); | $state_refs = $this->getStateRefs(); | ||||
if (!isset($state_refs[$hash])) { | if (!isset($state_refs[$hash])) { | ||||
throw new Exception( | throw new Exception( | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 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