Page MenuHomeSealhub

ArcanistWorkingCopyCommitHardpointQuery.php
No OneTemporary

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, Jul 4, 08:26 (5 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
796757
Default Alt Text
ArcanistWorkingCopyCommitHardpointQuery.php (874 B)

Event Timeline