Changeset View
Changeset View
Standalone View
Standalone View
src/repository/marker/ArcanistRepositoryMarkerQuery.php
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | final public function execute() { | ||||
$api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
foreach ($markers as $marker) { | foreach ($markers as $marker) { | ||||
$state_ref = id(new ArcanistWorkingCopyStateRef()) | $state_ref = id(new ArcanistWorkingCopyStateRef()) | ||||
->setCommitRef($marker->getCommitRef()); | ->setCommitRef($marker->getCommitRef()); | ||||
$marker->attachWorkingCopyStateRef($state_ref); | $marker->attachWorkingCopyStateRef($state_ref); | ||||
$hash = $marker->getCommitHash(); | $hash = $marker->getCommitHash(); | ||||
if ($hash !== null) { | |||||
$hash = $api->getDisplayHash($hash); | $hash = $api->getDisplayHash($hash); | ||||
$marker->setDisplayHash($hash); | $marker->setDisplayHash($hash); | ||||
} | } | ||||
} | |||||
$types = $this->markerTypes; | $types = $this->markerTypes; | ||||
if ($types !== null) { | if ($types !== null) { | ||||
foreach ($markers as $key => $marker) { | foreach ($markers as $key => $marker) { | ||||
if (!isset($types[$marker->getMarkerType()])) { | if (!isset($types[$marker->getMarkerType()])) { | ||||
unset($markers[$key]); | unset($markers[$key]); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 44 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