mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 14:00:55 +01:00
Restore default "yes" behavior for lint patch
Summary: Fixes T9029 See T9029 for more details, but basically at some point phutil_console_confirm (which takes a `$default_no` parameter) was refactored to `$console->confirm()` which takes a `$default` parameter with semantics negated.. Test Plan: Run `arc lint` on a repository where patch is suggested. Default option should be "[Y/n]" to accept the patch. Reviewers: joshuaspence, #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley Maniphest Tasks: T9029 Differential Revision: https://secure.phabricator.com/D13873
This commit is contained in:
parent
423e7d2389
commit
807057087d
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ EOTEXT
|
|||
$prompt = pht(
|
||||
'Apply this patch to %s?',
|
||||
phutil_console_format('__%s__', $result->getPath()));
|
||||
if (!$console->confirm($prompt, $default_no = false)) {
|
||||
if (!$console->confirm($prompt, $default = true)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue