Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/storage/ReleephRequest.php
| Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | if ($this->shouldBeInBranch()) { | ||||
| return ReleephRequestStatus::STATUS_PICKED; | return ReleephRequestStatus::STATUS_PICKED; | ||||
| } else { | } else { | ||||
| return ReleephRequestStatus::STATUS_NEEDS_PICK; | return ReleephRequestStatus::STATUS_NEEDS_PICK; | ||||
| } | } | ||||
| } else { | } else { | ||||
| if ($this->getInBranch()) { | if ($this->getInBranch()) { | ||||
| return ReleephRequestStatus::STATUS_NEEDS_REVERT; | return ReleephRequestStatus::STATUS_NEEDS_REVERT; | ||||
| } else { | } else { | ||||
| $intent_pass = ReleephRequest::INTENT_PASS; | $intent_pass = self::INTENT_PASS; | ||||
| $intent_want = ReleephRequest::INTENT_WANT; | $intent_want = self::INTENT_WANT; | ||||
| $has_been_in_branch = $this->getCommitIdentifier(); | $has_been_in_branch = $this->getCommitIdentifier(); | ||||
| // Regardless of why we reverted something, always say reverted if it | // Regardless of why we reverted something, always say reverted if it | ||||
| // was once in the branch. | // was once in the branch. | ||||
| if ($has_been_in_branch) { | if ($has_been_in_branch) { | ||||
| return ReleephRequestStatus::STATUS_REVERTED; | return ReleephRequestStatus::STATUS_REVERTED; | ||||
| } else if ($this->getPusherIntent() === $intent_pass) { | } else if ($this->getPusherIntent() === $intent_pass) { | ||||
| // Otherwise, if it has never been in the branch, explicitly say why: | // Otherwise, if it has never been in the branch, explicitly say why: | ||||
| ▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines | |||||