Commit 5c4a025d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Vcs: Extend vcsFullySynchronousExec to have flags

Change-Id: I4c4174d8a2b8989d59750c57dc6a0b5aae375670
Reviewed-by: default avatarOrgad Shaneh <>
parent 55661466
......@@ -389,10 +389,12 @@ bool VcsBaseClient::synchronousPush(const QString &workingDir,
bool VcsBaseClient::vcsFullySynchronousExec(const QString &workingDir,
const QStringList &args,
QByteArray *outputData,
QByteArray *errorData) const
QByteArray *errorData,
unsigned flags) const
QByteArray internalErrorData;
QScopedPointer<VcsCommand> command(createCommand(workingDir));
bool result = command->runFullySynchronous(args, vcsTimeoutS(), outputData,
errorData ? errorData : &internalErrorData);
if (!internalErrorData.isEmpty())
......@@ -222,7 +222,8 @@ protected:
QString vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const;
// Fully synchronous VCS execution (QProcess-based)
bool vcsFullySynchronousExec(const QString &workingDir, const QStringList &args,
QByteArray *outputData, QByteArray *errorData = 0) const;
QByteArray *outputData, QByteArray *errorData = 0,
unsigned flags = 0) const;
// Synchronous VCS execution using Utils::SynchronousProcess, with
// log windows updating (using VcsBasePlugin::runVcs with flags)
Utils::SynchronousProcessResponse vcsSynchronousExec(const QString &workingDir,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment