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 <orgads@gmail.com>
parent 55661466
...@@ -389,10 +389,12 @@ bool VcsBaseClient::synchronousPush(const QString &workingDir, ...@@ -389,10 +389,12 @@ bool VcsBaseClient::synchronousPush(const QString &workingDir,
bool VcsBaseClient::vcsFullySynchronousExec(const QString &workingDir, bool VcsBaseClient::vcsFullySynchronousExec(const QString &workingDir,
const QStringList &args, const QStringList &args,
QByteArray *outputData, QByteArray *outputData,
QByteArray *errorData) const QByteArray *errorData,
unsigned flags) const
{ {
QByteArray internalErrorData; QByteArray internalErrorData;
QScopedPointer<VcsCommand> command(createCommand(workingDir)); QScopedPointer<VcsCommand> command(createCommand(workingDir));
command->addFlags(flags);
bool result = command->runFullySynchronous(args, vcsTimeoutS(), outputData, bool result = command->runFullySynchronous(args, vcsTimeoutS(), outputData,
errorData ? errorData : &internalErrorData); errorData ? errorData : &internalErrorData);
if (!internalErrorData.isEmpty()) if (!internalErrorData.isEmpty())
......
...@@ -222,7 +222,8 @@ protected: ...@@ -222,7 +222,8 @@ protected:
QString vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const; QString vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const;
// Fully synchronous VCS execution (QProcess-based) // Fully synchronous VCS execution (QProcess-based)
bool vcsFullySynchronousExec(const QString &workingDir, const QStringList &args, 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 // Synchronous VCS execution using Utils::SynchronousProcess, with
// log windows updating (using VcsBasePlugin::runVcs with flags) // log windows updating (using VcsBasePlugin::runVcs with flags)
Utils::SynchronousProcessResponse vcsSynchronousExec(const QString &workingDir, 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