Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistDiffWorkflow.php
| Show First 20 Lines • Show All 2,522 Lines • ▼ Show 20 Lines | private function checkRevisionOwnership(array $revision) { | ||||
| $id = $revision['id']; | $id = $revision['id']; | ||||
| $title = $revision['title']; | $title = $revision['title']; | ||||
| $prompt = pht( | $prompt = pht( | ||||
| "You don't own revision %s: \"%s\". Normally, you should ". | "You don't own revision %s: \"%s\". Normally, you should ". | ||||
| "only update revisions you own. You can \"Commandeer\" this revision ". | "only update revisions you own. You can \"Commandeer\" this revision ". | ||||
| "from the web interface if you want to become the owner.\n\n". | "from the web interface if you want to become the owner.\n\n". | ||||
| "Update this revision anyway? [y/N]", | "Update this revision anyway?", | ||||
| "D{$id}", | "D{$id}", | ||||
| $title); | $title); | ||||
| $ok = phutil_console_confirm($prompt, $default_no = true); | $ok = phutil_console_confirm($prompt, $default_no = true); | ||||
| if (!$ok) { | if (!$ok) { | ||||
| throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
| pht('Aborted update of revision: You are not the owner.')); | pht('Aborted update of revision: You are not the owner.')); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 370 Lines • Show Last 20 Lines | |||||