Process: Change signature of exitMessage()

Change the last arg to std::chrono::milliseconds type.

Change-Id: Ifb818f76ee33e03997cb5b1dd17336248f401238
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2024-01-22 17:46:37 +01:00
parent afc67468e6
commit e98f6e31e7
3 changed files with 12 additions and 13 deletions

View File

@@ -154,22 +154,20 @@ EventLoopMode VcsCommandPrivate::eventLoopMode() const
ProcessResult VcsCommandPrivate::handleDone(Process *process, const Job &job) const
{
ProcessResult result;
QString exitMessage;
if (job.exitCodeInterpreter && process->error() != QProcess::FailedToStart
&& process->exitStatus() == QProcess::NormalExit) {
result = job.exitCodeInterpreter(process->exitCode());
exitMessage = Process::exitMessage(process->commandLine(), m_result,
process->exitCode(), job.timeoutS);
} else {
result = process->result();
exitMessage = process->exitMessage();
}
const QString message = Process::exitMessage(process->commandLine(), result,
process->exitCode(), process->processDuration());
// Success/Fail message in appropriate window?
if (result == ProcessResult::FinishedWithSuccess) {
if (m_flags & RunFlags::ShowSuccessMessage)
VcsOutputWindow::appendMessage(exitMessage);
VcsOutputWindow::appendMessage(message);
} else if (!(m_flags & RunFlags::SuppressFailMessage)) {
VcsOutputWindow::appendError(exitMessage);
VcsOutputWindow::appendError(message);
}
if (m_flags & RunFlags::ExpectRepoChanges) {
// TODO tell the document manager that the directory now received all expected changes