Differential D18737 Diff 44992 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 1,534 Lines • ▼ Show 20 Lines | private function loadUnbroadcastTransactions($object) { | ||||
| return array_reverse($xactions); | return array_reverse($xactions); | ||||
| } | } | ||||
| protected function didApplyTransactions($object, array $xactions) { | protected function didApplyTransactions($object, array $xactions) { | ||||
| // If a draft revision has no outstanding builds and we're automatically | // If a draft revision has no outstanding builds and we're automatically | ||||
| // making drafts public after builds finish, make the revision public. | // making drafts public after builds finish, make the revision public. | ||||
| $auto_undraft = true; | $auto_undraft = !$object->getHoldAsDraft(); | ||||
| if ($object->isDraft() && $auto_undraft) { | if ($object->isDraft() && $auto_undraft) { | ||||
| $active_builds = $this->hasActiveBuilds($object); | $active_builds = $this->hasActiveBuilds($object); | ||||
| if (!$active_builds) { | if (!$active_builds) { | ||||
| // When Harbormaster moves a revision out of the draft state, we | // When Harbormaster moves a revision out of the draft state, we | ||||
| // attribute the action to the revision author since this is more | // attribute the action to the revision author since this is more | ||||
| // natural and more useful. | // natural and more useful. | ||||
| $author_phid = $object->getAuthorPHID(); | $author_phid = $object->getAuthorPHID(); | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||