From 522bf9fd97892711ce06960f36877184177ec484 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Wed, 14 Aug 2024 16:10:04 +0700 Subject: [PATCH] Don't duplicate hg process output GetTextFromQuery calls ExecuteErrorsOk, which already logs the value of stdout and stderr to the progress dialog. So there's no point in logging the same value a second time. --- src/LibChorus/VcsDrivers/Mercurial/HgRepository.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/LibChorus/VcsDrivers/Mercurial/HgRepository.cs b/src/LibChorus/VcsDrivers/Mercurial/HgRepository.cs index 3e546945..5bd479ed 100644 --- a/src/LibChorus/VcsDrivers/Mercurial/HgRepository.cs +++ b/src/LibChorus/VcsDrivers/Mercurial/HgRepository.cs @@ -468,18 +468,6 @@ private string GetTextFromQuery(string query, int secondsBeforeTimeoutOnLocalOpe { var result = ExecuteErrorsOk(query, secondsBeforeTimeoutOnLocalOperation); - var standardOutputText = result.StandardOutput?.Trim(); - if (!string.IsNullOrEmpty(standardOutputText)) - { - _progress.WriteVerbose(standardOutputText); - } - - var standardErrorText = result.StandardError?.Trim(); - if (!string.IsNullOrEmpty(standardErrorText)) - { - _progress.WriteError(standardErrorText); - } - if (GetHasLocks()) { _progress.WriteWarning("Hg Command {0} left lock", query);