]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Redirect output to console in background mode of `arc diff`
authorvrana <jakubv@fb.com>
Thu, 9 Aug 2012 02:02:33 +0000 (19:02 -0700)
committervrana <jakubv@fb.com>
Thu, 9 Aug 2012 02:04:59 +0000 (19:04 -0700)
Summary: See D3208.

Test Plan:
  $ arc diff --background 1

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3210

src/workflow/ArcanistDiffWorkflow.php

index 256b76768bbb060c489ee5a796fb98ca0c4f80a5..1633c7f6ee326b8e84ce1ffa510711a63fb983a3 100644 (file)
@@ -371,6 +371,7 @@ EOTEXT
     $this->console = PhutilConsole::getConsole();
 
     if ($this->getArgument('no-diff')) {
+      $this->console->beginRedirectOut();
       $this->removeScratchFile('diff-result.json');
       $data = $this->runLintUnit();
       $this->writeScratchJSONFile('diff-result.json', $data);