Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7112950
ArcanistWorkingCopyCommitHardpointQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
874 B
Referenced Files
None
Subscribers
None
ArcanistWorkingCopyCommitHardpointQuery.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment