Changeset View
Changeset View
Standalone View
Standalone View
scripts/differential/destroy_revision.php
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| $title = $revision->getTitle(); | $title = $revision->getTitle(); | ||||
| $ok = phutil_console_confirm("Really destroy 'D{$id}: {$title}' forever?"); | $ok = phutil_console_confirm("Really destroy 'D{$id}: {$title}' forever?"); | ||||
| if (!$ok) { | if (!$ok) { | ||||
| throw new Exception("User aborted workflow."); | throw new Exception("User aborted workflow."); | ||||
| } | } | ||||
| $revision->delete(); | $revision->delete(); | ||||
| echo "OK, destroyed revision.\n"; | echo "OK, destroyed revision.\n"; | ||||