Differential D14352 Diff 34645 src/applications/drydock/operation/DrydockLandRepositoryOperation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/operation/DrydockLandRepositoryOperation.php
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | if (!$can_push) { | ||||
'body' => pht( | 'body' => pht( | ||||
'You do not have permission to push to the repository this '. | 'You do not have permission to push to the repository this '. | ||||
'revision is associated with ("%s"), so you can not land it.', | 'revision is associated with ("%s"), so you can not land it.', | ||||
$repository->getMonogram()), | $repository->getMonogram()), | ||||
); | ); | ||||
} | } | ||||
$status_accepted = ArcanistDifferentialRevisionStatus::ACCEPTED; | $status_accepted = ArcanistDifferentialRevisionStatus::ACCEPTED; | ||||
if ($revision->getStatus() !== $status_accepted) { | if ($revision->getStatus() != $status_accepted) { | ||||
return array( | return array( | ||||
'title' => pht('Revision Not Accepted'), | 'title' => pht('Revision Not Accepted'), | ||||
'body' => pht( | 'body' => pht( | ||||
'This revision is still under review. Only revisions which have '. | 'This revision is still under review. Only revisions which have '. | ||||
'been accepted may land.'), | 'been accepted may land.'), | ||||
); | ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |