Changeset View
Changeset View
Standalone View
Standalone View
src/browse/query/ArcanistBrowseCommitHardpointQuery.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public function loadHardpoint(array $refs, $hardpoint) { | ||||
if (!$commit_map) { | if (!$commit_map) { | ||||
yield $this->yieldMap(array()); | yield $this->yieldMap(array()); | ||||
} | } | ||||
$results = array(); | $results = array(); | ||||
foreach ($commit_map as $commit_identifier => $ref_keys) { | foreach ($commit_map as $commit_identifier => $ref_keys) { | ||||
foreach ($ref_keys as $key) { | foreach ($ref_keys as $key) { | ||||
$commit_ref = id(new ArcanistCommitRef()) | $commit_ref = (new ArcanistCommitRef()) | ||||
->setCommitHash($commit_identifier); | ->setCommitHash($commit_identifier); | ||||
$results[$key][] = $commit_ref; | $results[$key][] = $commit_ref; | ||||
} | } | ||||
} | } | ||||
yield $this->yieldMap($results); | yield $this->yieldMap($results); | ||||
} | } | ||||
} | } |
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