1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 06:42:41 +01:00

Let phutil_rebuild_map **really** be quiet

Summary: Depends on D9586. The progress bar is written to stderr which results in bad stuff happening when you try run `lint` (`PhutilLibraryLinter` calls it)

Test Plan: run `arc lint`, see no more errors

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9587
This commit is contained in:
Richard van Velzen 2014-06-16 15:49:08 -07:00 committed by epriestley
parent 5a02012706
commit 8d7ee9ee38

View file

@ -141,6 +141,9 @@ final class PhutilLibraryMapBuilder {
$this->log("Analyzing {$count} files with {$limit} subprocesses...\n"); $this->log("Analyzing {$count} files with {$limit} subprocesses...\n");
$progress = new PhutilConsoleProgressBar(); $progress = new PhutilConsoleProgressBar();
if ($this->quiet) {
$progress->setQuiet(true);
}
$progress->setTotal(count($futures)); $progress->setTotal(count($futures));
foreach (Futures($futures)->limit($limit) as $file => $future) { foreach (Futures($futures)->limit($limit) as $file => $future) {