Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintWorkflow.php
| Show First 20 Lines • Show All 520 Lines • ▼ Show 20 Lines | foreach ($results as $result) { | ||||
| list(, $stdout, $stderr) = | list(, $stdout, $stderr) = | ||||
| exec_manual('diff -u %s %s', $old_file, $new_file); | exec_manual('diff -u %s %s', $old_file, $new_file); | ||||
| $console->writeOut('%s', $stdout); | $console->writeOut('%s', $stdout); | ||||
| $console->writeErr('%s', $stderr); | $console->writeErr('%s', $stderr); | ||||
| $prompt = pht( | $prompt = pht( | ||||
| 'Apply this patch to %s?', | 'Apply this patch to %s?', | ||||
| phutil_console_format('__%s__', $result->getPath())); | phutil_console_format('__%s__', $result->getPath())); | ||||
| if (!$console->confirm($prompt, $default_no = false)) { | if (!$console->confirm($prompt, $default = true)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| } | } | ||||
| $patcher->writePatchToDisk(); | $patcher->writePatchToDisk(); | ||||
| $wrote_to_disk = true; | $wrote_to_disk = true; | ||||
| $file_hashes[$old_file] = md5_file($old_file); | $file_hashes[$old_file] = md5_file($old_file); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines | |||||