Differential D17133 Diff 41202 src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php
| Show All 20 Lines | final class DifferentialRevisionAbandonTransaction | ||||
| public function getColor() { | public function getColor() { | ||||
| return 'indigo'; | return 'indigo'; | ||||
| } | } | ||||
| protected function getRevisionActionOrder() { | protected function getRevisionActionOrder() { | ||||
| return 500; | return 500; | ||||
| } | } | ||||
| public function getCommandKeyword() { | |||||
| return 'abandon'; | |||||
| } | |||||
| public function getCommandAliases() { | |||||
| return array(); | |||||
| } | |||||
| public function getCommandSummary() { | |||||
| return pht('Abandon a revision.'); | |||||
| } | |||||
| public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
| return $object->isAbandoned(); | return $object->isAbandoned(); | ||||
| } | } | ||||
| public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
| $object->setStatus(ArcanistDifferentialRevisionStatus::ABANDONED); | $object->setStatus(ArcanistDifferentialRevisionStatus::ABANDONED); | ||||
| } | } | ||||
| Show All 35 Lines | |||||