Differential D21785 Diff 51942 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 385 Lines • ▼ Show 20 Lines | switch ($status) { | ||||
'was not pushed to staging. Changes must be pushed to staging '. | 'was not pushed to staging. Changes must be pushed to staging '. | ||||
'before they can be landed from the web.'), | 'before they can be landed from the web.'), | ||||
); | ); | ||||
case ArcanistDiffWorkflow::STAGING_REPOSITORY_UNAVAILABLE: | case ArcanistDiffWorkflow::STAGING_REPOSITORY_UNAVAILABLE: | ||||
return array( | return array( | ||||
'title' => pht('Staging Unavailable'), | 'title' => pht('Staging Unavailable'), | ||||
'body' => pht( | 'body' => pht( | ||||
'When this diff was generated, the server was running an older '. | 'When this diff was generated, the server was running an older '. | ||||
'version of Phabricator which did not support staging areas, so '. | 'version of the software which did not support staging areas, so '. | ||||
'the change was not pushed to staging. Changes must be pushed '. | 'the change was not pushed to staging. Changes must be pushed '. | ||||
'to staging before they can be landed from the web.'), | 'to staging before they can be landed from the web.'), | ||||
); | ); | ||||
case ArcanistDiffWorkflow::STAGING_REPOSITORY_UNSUPPORTED: | case ArcanistDiffWorkflow::STAGING_REPOSITORY_UNSUPPORTED: | ||||
return array( | return array( | ||||
'title' => pht('Repository Unsupported'), | 'title' => pht('Repository Unsupported'), | ||||
'body' => pht( | 'body' => pht( | ||||
'When this diff was generated, the server was running an older '. | 'When this diff was generated, the server was running an older '. | ||||
'version of Phabricator which did not support staging areas for '. | 'version of the software which did not support staging areas for '. | ||||
'this version control system, so the change was not pushed to '. | 'this version control system, so the change was not pushed to '. | ||||
'staging. Changes must be pushed to staging before they can be '. | 'staging. Changes must be pushed to staging before they can be '. | ||||
'landed from the web.'), | 'landed from the web.'), | ||||
); | ); | ||||
case ArcanistDiffWorkflow::STAGING_REPOSITORY_UNCONFIGURED: | case ArcanistDiffWorkflow::STAGING_REPOSITORY_UNCONFIGURED: | ||||
return array( | return array( | ||||
'title' => pht('Repository Unconfigured'), | 'title' => pht('Repository Unconfigured'), | ||||
Show All 15 Lines | switch ($status) { | ||||
); | ); | ||||
default: | default: | ||||
return array( | return array( | ||||
'title' => pht('Unknown Error'), | 'title' => pht('Unknown Error'), | ||||
'body' => pht( | 'body' => pht( | ||||
'When this diff was generated, it was not pushed to staging for '. | 'When this diff was generated, it was not pushed to staging for '. | ||||
'an unknown reason (the status code was "%s"). Changes must be '. | 'an unknown reason (the status code was "%s"). Changes must be '. | ||||
'pushed to staging before they can be landed from the web. '. | 'pushed to staging before they can be landed from the web. '. | ||||
'The server may be running an out-of-date version of Phabricator, '. | 'The server may be running an out-of-date version of this '. | ||||
'and updating may provide more information about this error.', | 'software, and updating may provide more information about this '. | ||||
'error.', | |||||
$status), | $status), | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
} | } |