]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Let phutil_rebuild_map **really** be quiet
authorRichard van Velzen <rvanvelzen1@gmail.com>
Mon, 16 Jun 2014 22:49:08 +0000 (15:49 -0700)
committerepriestley <git@epriestley.com>
Mon, 16 Jun 2014 22:49:08 +0000 (15:49 -0700)
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

scripts/lib/PhutilLibraryMapBuilder.php

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