Changeset View
Changeset View
Standalone View
Standalone View
src/browse/query/ArcanistBrowseRevisionURIHardpointQuery.php
Show All 16 Lines | yield $this->yieldRequests( | ||||
ArcanistBrowseRef::HARDPOINT_COMMITREFS, | ArcanistBrowseRef::HARDPOINT_COMMITREFS, | ||||
)); | )); | ||||
$states = array(); | $states = array(); | ||||
$map = array(); | $map = array(); | ||||
foreach ($refs as $key => $ref) { | foreach ($refs as $key => $ref) { | ||||
foreach ($ref->getCommitRefs() as $commit_ref) { | foreach ($ref->getCommitRefs() as $commit_ref) { | ||||
$hash = $commit_ref->getCommitHash(); | $hash = $commit_ref->getCommitHash(); | ||||
$states[$hash] = id(new ArcanistWorkingCopyStateRef()) | $states[$hash] = (new ArcanistWorkingCopyStateRef()) | ||||
->setCommitRef($commit_ref); | ->setCommitRef($commit_ref); | ||||
$map[$hash][] = $key; | $map[$hash][] = $key; | ||||
} | } | ||||
} | } | ||||
if (!$states) { | if (!$states) { | ||||
yield $this->yieldMap(array()); | yield $this->yieldMap(array()); | ||||
} | } | ||||
Show All 29 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