Changeset View
Changeset View
Standalone View
Standalone View
src/query/ArcanistGitWorkingCopyRevisionHardpointQuery.php
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | if ($hashes) { | ||||
| ))); | ))); | ||||
| foreach ($revisions as $dict) { | foreach ($revisions as $dict) { | ||||
| $revision_hashes = idx($dict, 'hashes'); | $revision_hashes = idx($dict, 'hashes'); | ||||
| if (!$revision_hashes) { | if (!$revision_hashes) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $revision_ref = ArcanistRevisionRef::newFromConduit($dict); | $revision_ref = ArcanistRevisionRef::newFromConduitQuery($dict); | ||||
| foreach ($revision_hashes as $revision_hash) { | foreach ($revision_hashes as $revision_hash) { | ||||
| $hash_key = $this->getHashKey($revision_hash); | $hash_key = $this->getHashKey($revision_hash); | ||||
| $state_refs = idx($map, $hash_key, array()); | $state_refs = idx($map, $hash_key, array()); | ||||
| foreach ($state_refs as $ref_key => $state_ref) { | foreach ($state_refs as $ref_key => $state_ref) { | ||||
| $results[$ref_key][] = $revision_ref; | $results[$ref_key][] = $revision_ref; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Show All 10 Lines | |||||