From: vrana Date: Thu, 9 Aug 2012 02:02:33 +0000 (-0700) Subject: Redirect output to console in background mode of `arc diff` X-Git-Tag: conduit-6~172 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=45fc4c992cd34716f5b106ae190d7fa6b11d8d2a;p=arcanist.git Redirect output to console in background mode of `arc diff` Summary: See D3208. Test Plan: $ arc diff --background 1 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3210 --- diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index 256b7676..1633c7f6 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -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);