Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100504258
PhabricatorOwnerPathQuery.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
Fri, Jan 31, 07:46
Size
848 B
Mime Type
text/x-php
Expires
Sun, Feb 2, 07:46 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23978913
Attached To
rPH Phabricator
PhabricatorOwnerPathQuery.php
View Options
<?php
final
class
PhabricatorOwnerPathQuery
extends
Phobject
{
public
static
function
loadAffectedPaths
(
PhabricatorRepository
$repository
,
PhabricatorRepositoryCommit
$commit
,
PhabricatorUser
$user
)
{
$drequest
=
DiffusionRequest
::
newFromDictionary
(
array
(
'user'
=>
$user
,
'repository'
=>
$repository
,
'commit'
=>
$commit
->
getCommitIdentifier
(),
));
$path_query
=
DiffusionPathChangeQuery
::
newFromDiffusionRequest
(
$drequest
);
$paths
=
$path_query
->
loadChanges
();
$result
=
array
();
foreach
(
$paths
as
$path
)
{
$basic_path
=
'/'
.
$path
->
getPath
();
if
(
$path
->
getFileType
()
==
DifferentialChangeType
::
FILE_DIRECTORY
)
{
$basic_path
=
rtrim
(
$basic_path
,
'/'
).
'/'
;
}
$result
[]
=
$basic_path
;
}
return
$result
;
}
}
Event Timeline
Log In to Comment