Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialController.php
| Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | protected function buildPackageMaps(array $changesets) { | ||||
| foreach ($changesets as $changeset) { | foreach ($changesets as $changeset) { | ||||
| $changeset_path = $changeset->getOwnersFilename(); | $changeset_path = $changeset->getOwnersFilename(); | ||||
| $packages = $control_query->getControllingPackagesForPath( | $packages = $control_query->getControllingPackagesForPath( | ||||
| $repository_phid, | $repository_phid, | ||||
| $changeset_path); | $changeset_path); | ||||
| // If this particular changeset is generated code and the package does | |||||
| // not match generated code, remove it from the list. | |||||
| if ($changeset->isGeneratedChangeset()) { | |||||
| foreach ($packages as $key => $package) { | |||||
| if ($package->getMustMatchUngeneratedPaths()) { | |||||
| unset($packages[$key]); | |||||
| } | |||||
| } | |||||
| } | |||||
| $this->pathPackageMap[$changeset_path] = $packages; | $this->pathPackageMap[$changeset_path] = $packages; | ||||
| foreach ($packages as $package) { | foreach ($packages as $package) { | ||||
| $this->packageChangesetMap[$package->getPHID()][] = $changeset; | $this->packageChangesetMap[$package->getPHID()][] = $changeset; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| protected function getAuthorityPackages() { | protected function getAuthorityPackages() { | ||||
| ▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines | |||||