Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22407438
ArcanistRevisionCommitMessageHardpointQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
881 B
Referenced Files
None
Subscribers
None
ArcanistRevisionCommitMessageHardpointQuery.php
View Options
<?php
final
class
ArcanistRevisionCommitMessageHardpointQuery
extends
ArcanistRuntimeHardpointQuery
{
public
function
getHardpoints
()
{
return
array
(
ArcanistRevisionRef
::
HARDPOINT_COMMITMESSAGE
,
);
}
protected
function
canLoadRef
(
ArcanistRef
$ref
)
{
return
(
$ref
instanceof
ArcanistRevisionRef
);
}
public
function
loadHardpoint
(
array
$refs
,
$hardpoint
)
{
$api
=
$this
->
getRepositoryAPI
();
// NOTE: This is not efficient, but no bulk API exists at time of
// writing and no callers bulk-load this data.
$results
=
array
();
foreach
(
$refs
as
$key
=>
$ref
)
{
$message
=
(
yield
$this
->
yieldConduit
(
'differential.getcommitmessage'
,
array
(
'revision_id'
=>
$ref
->
getID
(),
'edit'
=>
false
,
)));
$results
[
$key
]
=
$message
;
}
yield
$this
->
yieldMap
(
$results
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 20:29 (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1219637
Default Alt Text
ArcanistRevisionCommitMessageHardpointQuery.php (881 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline