Differential D18693 Diff 44881 src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryMercurialCommitChangeParserWorker.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryMercurialCommitChangeParserWorker.php
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | foreach ($dir_status as $path => $status) { | ||||
$existing_type == DifferentialChangeType::TYPE_MULTICOPY) { | $existing_type == DifferentialChangeType::TYPE_MULTICOPY) { | ||||
// This change moves or copies a file, replaces it with a directory, | // This change moves or copies a file, replaces it with a directory, | ||||
// and then adds children to that directory. Mark it as "copy away" | // and then adds children to that directory. Mark it as "copy away" | ||||
// instead of whatever it was, and make the type a directory. | // instead of whatever it was, and make the type a directory. | ||||
$changes[$path]['fileType'] = DifferentialChangeType::FILE_DIRECTORY; | $changes[$path]['fileType'] = DifferentialChangeType::FILE_DIRECTORY; | ||||
$changes[$path]['changeType'] | $changes[$path]['changeType'] | ||||
= DifferentialChangeType::TYPE_COPY_AWAY; | = DifferentialChangeType::TYPE_COPY_AWAY; | ||||
} else if ($existing_type == DifferentialChangeType::TYPE_ADD) { | } else if ($existing_type == DifferentialChangeType::TYPE_ADD) { | ||||
// This change removes a diretory and replaces it with a file. Mark | // This change removes a directory and replaces it with a file. Mark | ||||
// it as "change" instead of "add". | // it as "change" instead of "add". | ||||
$changes[$path]['changeType'] = DifferentialChangeType::TYPE_CHANGE; | $changes[$path]['changeType'] = DifferentialChangeType::TYPE_CHANGE; | ||||
} | } | ||||
continue; | continue; | ||||
} | } | ||||
$changes[$path] = array( | $changes[$path] = array( | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |