Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15379006
D15468.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15468.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15468: Allow amending revisions without commandeering first
Attached
Detach File
Event Timeline
Log In to Comment