Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14053930
D16426.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
D16426.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 8:45 PM (2 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710395
Default Alt Text
D16426.diff (1 KB)
Attached To
Mode
D16426: Add a "--force" flag to "bin/repository move-paths"
Attached
Detach File
Event Timeline
Log In to Comment