Page MenuHomeSealhub

ArcanistWorkingCopyCommitHardpointQuery.php
No OneTemporary

Authored By
Unknown
Size
874 B
Referenced Files
None
Subscribers
None

ArcanistWorkingCopyCommitHardpointQuery.php

<?php
final class ArcanistWorkingCopyCommitHardpointQuery
extends ArcanistWorkflowHardpointQuery {
public function getHardpoints() {
return array(
ArcanistWorkingCopyStateRef::HARDPOINT_COMMITREF,
);
}
protected function canLoadRef(ArcanistRef $ref) {
return ($ref instanceof ArcanistWorkingCopyStateRef);
}
public function loadHardpoint(array $refs, $hardpoint) {
yield $this->yieldRequests(
$refs,
array(
ArcanistWorkingCopyStateRef::HARDPOINT_BRANCHREF,
));
$branch_refs = mpull($refs, 'getBranchRef');
yield $this->yieldRequests(
$branch_refs,
array(
ArcanistBranchRef::HARDPOINT_COMMITREF,
));
$results = array();
foreach ($refs as $key => $ref) {
$results[$key] = $ref->getBranchRef()->getCommitRef();
}
yield $this->yieldMap($results);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 27, 15:43 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1223570
Default Alt Text
ArcanistWorkingCopyCommitHardpointQuery.php (874 B)

Event Timeline