Differential D21761 Diff 51881 src/applications/diffusion/query/pathchange/DiffusionPathChangeQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/pathchange/DiffusionPathChangeQuery.php
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | foreach ($raw_changes as $raw_change) { | ||||
} | } | ||||
$change = new DiffusionPathChange(); | $change = new DiffusionPathChange(); | ||||
$change->setPath(ltrim($raw_change['pathName'], '/')); | $change->setPath(ltrim($raw_change['pathName'], '/')); | ||||
$change->setChangeType($raw_change['changeType']); | $change->setChangeType($raw_change['changeType']); | ||||
$change->setFileType($raw_change['fileType']); | $change->setFileType($raw_change['fileType']); | ||||
$change->setCommitIdentifier($commit->getCommitIdentifier()); | $change->setCommitIdentifier($commit->getCommitIdentifier()); | ||||
$change->setTargetPath(ltrim($raw_change['targetPathName'], '/')); | $target_path = $raw_change['targetPathName']; | ||||
if ($target_path !== null) { | |||||
$target_path = ltrim($target_path, '/'); | |||||
} | |||||
$change->setTargetPath($target_path); | |||||
$change->setTargetCommitIdentifier($raw_change['targetCommitIdentifier']); | $change->setTargetCommitIdentifier($raw_change['targetCommitIdentifier']); | ||||
$id = $raw_change['pathID']; | $id = $raw_change['pathID']; | ||||
$changes[$id] = $change; | $changes[$id] = $change; | ||||
} | } | ||||
// Deduce the away paths by examining all the changes, if we loaded them | // Deduce the away paths by examining all the changes, if we loaded them | ||||
// all. | // all. | ||||
Show All 18 Lines |