Differential D20544 Diff 49017 src/applications/differential/editor/DifferentialTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialTransactionEditor.php
Show First 20 Lines • Show All 840 Lines • ▼ Show 20 Lines | if ($revert_monograms) { | ||||
$revert_phids = mpull($revert_objects, 'getPHID', 'getPHID'); | $revert_phids = mpull($revert_objects, 'getPHID', 'getPHID'); | ||||
$revert_type = DiffusionCommitRevertsCommitEdgeType::EDGECONST; | $revert_type = DiffusionCommitRevertsCommitEdgeType::EDGECONST; | ||||
$edges[$revert_type] = $revert_phids; | $edges[$revert_type] = $revert_phids; | ||||
} else { | } else { | ||||
$revert_phids = array(); | $revert_phids = array(); | ||||
} | } | ||||
// See PHI574. Respect any unmentionable PHIDs which were set on the | $this->addUnmentionablePHIDs($task_phids); | ||||
// Editor by the caller. | $this->addUnmentionablePHIDs($rev_phids); | ||||
$unmentionable_map = $this->getUnmentionablePHIDMap(); | $this->addUnmentionablePHIDs($revert_phids); | ||||
$unmentionable_map += $task_phids; | |||||
$unmentionable_map += $rev_phids; | |||||
$unmentionable_map += $revert_phids; | |||||
$this->setUnmentionablePHIDMap($unmentionable_map); | |||||
$result = array(); | $result = array(); | ||||
foreach ($edges as $type => $specs) { | foreach ($edges as $type => $specs) { | ||||
$result[] = id(new DifferentialTransaction()) | $result[] = id(new DifferentialTransaction()) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ||||
->setMetadataValue('edge:type', $type) | ->setMetadataValue('edge:type', $type) | ||||
->setNewValue(array('+' => $specs)); | ->setNewValue(array('+' => $specs)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 862 Lines • Show Last 20 Lines |