Page MenuHomePhabricator

D16426.diff
No OneTemporary

D16426.diff

diff --git a/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php b/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php
--- a/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php
+++ b/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php
@@ -19,6 +19,10 @@
'param' => 'prefix',
'help' => pht('Replace matching prefixes with this string.'),
),
+ array(
+ 'name' => 'force',
+ 'help' => pht('Apply changes without prompting.'),
+ ),
));
}
@@ -47,6 +51,8 @@
'You must specify a path prefix to move to with --to.'));
}
+ $is_force = $args->getArg('force');
+
$rows = array();
$any_changes = false;
@@ -118,7 +124,7 @@
}
$prompt = pht('Apply these changes?');
- if (!phutil_console_confirm($prompt)) {
+ if (!$is_force && !phutil_console_confirm($prompt)) {
throw new Exception(pht('Declining to apply changes.'));
}

File Metadata

Mime Type
text/plain
Expires
Wed, May 8, 11:37 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6269915
Default Alt Text
D16426.diff (1 KB)

Event Timeline