Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116657442
DiffusionSvnLastModifiedQuery.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
Sun, Jun 8, 08:32
Size
686 B
Mime Type
text/x-php
Expires
Tue, Jun 10, 08:32 (2 d)
Engine
blob
Format
Raw Data
Handle
26657392
Attached To
rPH Phabricator
DiffusionSvnLastModifiedQuery.php
View Options
<?php
final
class
DiffusionSvnLastModifiedQuery
extends
DiffusionLastModifiedQuery
{
protected
function
executeQuery
()
{
$drequest
=
$this
->
getRequest
();
$repository
=
$drequest
->
getRepository
();
$path
=
$drequest
->
getPath
();
$history_query
=
DiffusionHistoryQuery
::
newFromDiffusionRequest
(
$drequest
);
$history_query
->
setLimit
(
1
);
$history_query
->
needChildChanges
(
true
);
$history_query
->
needDirectChanges
(
true
);
$history_array
=
$history_query
->
loadHistory
();
if
(!
$history_array
)
{
return
array
(
null
,
null
);
}
$history
=
reset
(
$history_array
);
return
array
(
$history
->
getCommit
(),
$history
->
getCommitData
());
}
}
Event Timeline
Log In to Comment