Differential D12894 Diff 31029 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 214 Lines • ▼ Show 20 Lines | switch ($xaction->getTransactionType()) { | ||||
$diff = $this->requireDiff($xaction->getNewValue()); | $diff = $this->requireDiff($xaction->getNewValue()); | ||||
$object->setLineCount($diff->getLineCount()); | $object->setLineCount($diff->getLineCount()); | ||||
if ($this->repositoryPHIDOverride !== false) { | if ($this->repositoryPHIDOverride !== false) { | ||||
$object->setRepositoryPHID($this->repositoryPHIDOverride); | $object->setRepositoryPHID($this->repositoryPHIDOverride); | ||||
} else { | } else { | ||||
$object->setRepositoryPHID($diff->getRepositoryPHID()); | $object->setRepositoryPHID($diff->getRepositoryPHID()); | ||||
} | } | ||||
$object->setArcanistProjectPHID($diff->getArcanistProjectPHID()); | |||||
$object->attachActiveDiff($diff); | $object->attachActiveDiff($diff); | ||||
// TODO: Update the `diffPHID` once we add that. | // TODO: Update the `diffPHID` once we add that. | ||||
return; | return; | ||||
case DifferentialTransaction::TYPE_ACTION: | case DifferentialTransaction::TYPE_ACTION: | ||||
switch ($xaction->getNewValue()) { | switch ($xaction->getNewValue()) { | ||||
case DifferentialAction::ACTION_RESIGN: | case DifferentialAction::ACTION_RESIGN: | ||||
case DifferentialAction::ACTION_ACCEPT: | case DifferentialAction::ACTION_ACCEPT: | ||||
▲ Show 20 Lines • Show All 1,698 Lines • Show Last 20 Lines |