Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12660435
ArcanistMercurialWorkingCopyCommitHardpointLoader.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
856 B
Referenced Files
None
Subscribers
None
ArcanistMercurialWorkingCopyCommitHardpointLoader.php
View Options
<?php
final
class
ArcanistMercurialWorkingCopyCommitHardpointLoader
extends
ArcanistMercurialHardpointLoader
{
const
LOADERKEY
=
'hg.state.commit'
;
public
function
canLoadRef
(
ArcanistRef
$ref
)
{
return
(
$ref
instanceof
ArcanistWorkingCopyStateRef
);
}
public
function
canLoadHardpoint
(
ArcanistRef
$ref
,
$hardpoint
)
{
return
(
$hardpoint
==
'commitRef'
);
}
public
function
loadHardpoints
(
array
$refs
,
$hardpoint
)
{
$branch_refs
=
array
();
foreach
(
$refs
as
$ref_key
=>
$ref
)
{
if
(
$ref
->
hasAttachedHardpoint
(
'branchRef'
))
{
$branch_refs
[
$ref_key
]
=
$ref
->
getBranchRef
();
}
}
if
(
$branch_refs
)
{
$this
->
newQuery
(
$branch_refs
)
->
needHardpoints
(
array
(
'commitRef'
,
))
->
execute
();
}
return
mpull
(
$branch_refs
,
'getCommitRef'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:39 (10 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1053766
Default Alt Text
ArcanistMercurialWorkingCopyCommitHardpointLoader.php (856 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment