VCS: Allow to run commands synchronously

Run some commands synchronously. This avoids issues with the UI
reacting to file changes done by the VCS on windows which can lead
to crashes.

Task-number: QTCREATORBUG-3021
Reviewed-by: Tobias Hunger
This commit is contained in:
Friedemann Kleint
2010-11-22 14:53:20 +01:00
committed by Tobias Hunger
parent a13014eb4e
commit 818f5f0e78
4 changed files with 116 additions and 39 deletions

View File

@@ -1219,11 +1219,9 @@ bool SubversionPlugin::vcsMove(const QString &workingDir, const QString &from, c
{
QStringList args(QLatin1String("move"));
args << QDir::toNativeSeparators(from) << QDir::toNativeSeparators(to);
qDebug()<<args;
const SubversionResponse response =
runSvn(workingDir, args, m_settings.timeOutMS(),
SshPasswordPrompt|ShowStdOutInLogWindow);
qDebug() << response.stdOut << "\n"<<response.stdErr;
SshPasswordPrompt|ShowStdOutInLogWindow|FullySynchronously);
return !response.error;
}