Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78561328
DiffusionMercurialContainsQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 21, 15:27
Size
436 B
Mime Type
text/x-php
Expires
Fri, Aug 23, 15:27 (2 d)
Engine
blob
Format
Raw Data
Handle
20062219
Attached To
rPH Phabricator
DiffusionMercurialContainsQuery.php
View Options
<?php
final
class
DiffusionMercurialContainsQuery
extends
DiffusionContainsQuery
{
protected
function
executeQuery
()
{
$request
=
$this
->
getRequest
();
$repository
=
$request
->
getRepository
();
list
(
$contains
)
=
$repository
->
execxLocalCommand
(
'log --template %s --limit 1 --rev %s --'
,
'{branch}'
,
$request
->
getCommit
());
return
array
(
trim
(
$contains
)
=>
$request
->
getCommit
(),
);
}
}
Event Timeline
Log In to Comment