Page MenuHomePhabricator

D15468.diff
No OneTemporary

D15468.diff

diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -2529,13 +2529,19 @@
$id = $revision['id'];
$title = $revision['title'];
- throw new ArcanistUsageException(
- pht(
- "You don't own revision %s '%s'. You can only update revisions ".
- "you own. You can 'Commandeer' this revision from the web ".
- "interface if you want to become the owner.",
- "D{$id}",
- $title));
+ $prompt = pht(
+ "You don't own revision %s: \"%s\". Normally, you should ".
+ "only update revisions you own. You can \"Commandeer\" this revision ".
+ "from the web interface if you want to become the owner.\n\n".
+ "Update this revision anyway? [y/N]",
+ "D{$id}",
+ $title);
+
+ $ok = phutil_console_confirm($prompt, $default_no = true);
+ if (!$ok) {
+ throw new ArcanistUsageException(
+ pht('Aborted update of revision: You are not the owner.'));
+ }
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 14, 6:08 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224332
Default Alt Text
D15468.diff (1 KB)

Event Timeline