From 45fc4c992cd34716f5b106ae190d7fa6b11d8d2a Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 8 Aug 2012 19:02:33 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistDiffWorkflow.php | 1 + 1 file changed, 1 insertion(+) 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);