@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a "--force" flag to "bin/repository move-paths"

Summary:
Ref T7148. The automated export process runs this via daemon, which can't answer "Y" to this prompt. Let it "--force" instead.

(Some of my test instances didn't have any repositories, which is why I didn't catch this sooner.)

Test Plan: Ran `bin/repository move-paths --force ...`, saw change applied without a prompt.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T7148

Differential Revision: https://secure.phabricator.com/D16426

+7 -1
+7 -1
src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php
··· 19 19 'param' => 'prefix', 20 20 'help' => pht('Replace matching prefixes with this string.'), 21 21 ), 22 + array( 23 + 'name' => 'force', 24 + 'help' => pht('Apply changes without prompting.'), 25 + ), 22 26 )); 23 27 } 24 28 ··· 46 50 pht( 47 51 'You must specify a path prefix to move to with --to.')); 48 52 } 53 + 54 + $is_force = $args->getArg('force'); 49 55 50 56 $rows = array(); 51 57 ··· 118 124 } 119 125 120 126 $prompt = pht('Apply these changes?'); 121 - if (!phutil_console_confirm($prompt)) { 127 + if (!$is_force && !phutil_console_confirm($prompt)) { 122 128 throw new Exception(pht('Declining to apply changes.')); 123 129 } 124 130