Differential D21529 Diff 51260 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
Show First 20 Lines • Show All 916 Lines • ▼ Show 20 Lines | final private function doUpgradeSchemata( | ||||
array $apis, | array $apis, | ||||
$apply_only, | $apply_only, | ||||
$no_quickstart, | $no_quickstart, | ||||
$init_only) { | $init_only) { | ||||
$patches = $this->patches; | $patches = $this->patches; | ||||
$is_dryrun = $this->dryRun; | $is_dryrun = $this->dryRun; | ||||
// We expect that patches should already be sorted properly. However, | |||||
// phase behavior will be wrong if they aren't, so make sure. | |||||
$patches = msortv($patches, 'newSortVector'); | |||||
$api_map = array(); | $api_map = array(); | ||||
foreach ($apis as $api) { | foreach ($apis as $api) { | ||||
$api_map[$api->getRef()->getRefKey()] = $api; | $api_map[$api->getRef()->getRefKey()] = $api; | ||||
} | } | ||||
foreach ($api_map as $ref_key => $api) { | foreach ($api_map as $ref_key => $api) { | ||||
$applied = $api->getAppliedPatches(); | $applied = $api->getAppliedPatches(); | ||||
▲ Show 20 Lines • Show All 351 Lines • Show Last 20 Lines |