VcsBase: Move RunFlags into separate header

It is going to be used outside of VcsCommand, too.
Use RunFlags enum as an argument to several functions
instead of unsigned.

Change-Id: I355c80a845a9b5982108fbde3412754392dce702
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-10-05 19:08:53 +02:00
parent 3811236903
commit eec0679234
20 changed files with 196 additions and 159 deletions

View File

@@ -69,7 +69,7 @@ bool SubversionClient::doCommit(const FilePath &repositoryRoot,
<< commitMessageFile
<< escapeFiles(files);
const CommandResult result = vcsSynchronousExec(repositoryRoot, args,
VcsCommand::ShowStdOut | VcsCommand::UseEventLoop);
RunFlags::ShowStdOut | RunFlags::UseEventLoop);
return result.result() == ProcessResult::FinishedWithSuccess;
}
@@ -197,7 +197,7 @@ void SubversionDiffEditorController::requestDescription()
args << m_authenticationOptions;
args << QLatin1String("-r");
args << QString::number(m_changeNumber);
runCommand(QList<QStringList>() << args, 0);
runCommand(QList<QStringList>() << args, RunFlags::None);
}
void SubversionDiffEditorController::requestDiff()
@@ -216,7 +216,7 @@ void SubversionDiffEditorController::requestDiff()
} else {
args << m_filesList;
}
runCommand(QList<QStringList>() << args, 0);
runCommand(QList<QStringList>() << args, RunFlags::None);
}
void SubversionDiffEditorController::processCommandOutput(const QString &output)