3 final class PhabricatorOwnerPathQuery
extends Phobject
{
5 public static function loadAffectedPaths(
6 PhabricatorRepository
$repository,
7 PhabricatorRepositoryCommit
$commit,
8 PhabricatorUser
$user) {
10 $drequest = DiffusionRequest
::newFromDictionary(
13 'repository' => $repository,
14 'commit' => $commit->getCommitIdentifier(),
17 $path_query = DiffusionPathChangeQuery
::newFromDiffusionRequest(
19 $paths = $path_query->loadChanges();
22 foreach ($paths as $path) {
23 $basic_path = '/'.$path->getPath();
24 if ($path->getFileType() == DifferentialChangeType
::FILE_DIRECTORY
) {
25 $basic_path = rtrim($basic_path, '/').'/';
27 $result[] = $basic_path;