Commit f7349e49 authored by Eike Ziller's avatar Eike Ziller Committed by Orgad Shaneh

Fix build

The (un)expectDirectoryChange API addition has been reverted

Change-Id: I4736f51a77eb2f63b3e4a7b44426ad15a06624c7
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 1ef2e51c
...@@ -102,7 +102,6 @@ bool MergeTool::start(const QString &workingDirectory, const QStringList &files) ...@@ -102,7 +102,6 @@ bool MergeTool::start(const QString &workingDirectory, const QStringList &files)
if (m_process->waitForStarted()) { if (m_process->waitForStarted()) {
connect(m_process, SIGNAL(finished(int)), this, SLOT(done())); connect(m_process, SIGNAL(finished(int)), this, SLOT(done()));
connect(m_process, SIGNAL(readyRead()), this, SLOT(readData())); connect(m_process, SIGNAL(readyRead()), this, SLOT(readData()));
Core::DocumentManager::expectDirectoryChange(workingDirectory);
} }
else { else {
delete m_process; delete m_process;
...@@ -269,7 +268,6 @@ void MergeTool::done() ...@@ -269,7 +268,6 @@ void MergeTool::done()
} else { } else {
outputWindow->append(tr("Merge tool process terminated with exit code %1").arg(exitCode)); outputWindow->append(tr("Merge tool process terminated with exit code %1").arg(exitCode));
} }
Core::DocumentManager::unexpectDirectoryChange(workingDirectory);
GitPlugin::instance()->gitVersionControl()->emitRepositoryChanged(workingDirectory); GitPlugin::instance()->gitVersionControl()->emitRepositoryChanged(workingDirectory);
deleteLater(); deleteLater();
} }
......
...@@ -931,8 +931,9 @@ SynchronousProcessResponse VcsBasePlugin::runVcs(const QString &workingDir, ...@@ -931,8 +931,9 @@ SynchronousProcessResponse VcsBasePlugin::runVcs(const QString &workingDir,
VcsBase::VcsBasePlugin::setProcessEnvironment(&env, (flags & ForceCLocale)); VcsBase::VcsBasePlugin::setProcessEnvironment(&env, (flags & ForceCLocale));
if (flags & ExpectRepoChanges) // TODO tell the document manager about expected repository changes
Core::DocumentManager::expectDirectoryChange(workingDir); // if (flags & ExpectRepoChanges)
// Core::DocumentManager::expectDirectoryChange(workingDir);
if (flags & FullySynchronously) { if (flags & FullySynchronously) {
response = runVcsFullySynchronously(workingDir, binary, arguments, timeOutMS, response = runVcsFullySynchronously(workingDir, binary, arguments, timeOutMS,
env, flags, outputCodec); env, flags, outputCodec);
...@@ -981,8 +982,9 @@ SynchronousProcessResponse VcsBasePlugin::runVcs(const QString &workingDir, ...@@ -981,8 +982,9 @@ SynchronousProcessResponse VcsBasePlugin::runVcs(const QString &workingDir,
if (!(flags & SuppressFailMessageInLogWindow)) if (!(flags & SuppressFailMessageInLogWindow))
outputWindow->appendError(response.exitMessage(binary, timeOutMS)); outputWindow->appendError(response.exitMessage(binary, timeOutMS));
} }
if (flags & ExpectRepoChanges) // TODO tell the document manager that the directory now received all expected changes
Core::DocumentManager::unexpectDirectoryChange(workingDir); // if (flags & ExpectRepoChanges)
// Core::DocumentManager::unexpectDirectoryChange(workingDir);
return response; return response;
} }
...@@ -1002,8 +1004,9 @@ bool VcsBasePlugin::runFullySynchronous(const QString &workingDirectory, ...@@ -1002,8 +1004,9 @@ bool VcsBasePlugin::runFullySynchronous(const QString &workingDirectory,
if (!(flags & SuppressCommandLogging)) if (!(flags & SuppressCommandLogging))
VcsBase::VcsBaseOutputWindow::instance()->appendCommand(workingDirectory, binary, arguments); VcsBase::VcsBaseOutputWindow::instance()->appendCommand(workingDirectory, binary, arguments);
if (flags & ExpectRepoChanges) // TODO tell the document manager about expected repository changes
Core::DocumentManager::expectDirectoryChange(workingDirectory); // if (flags & ExpectRepoChanges)
// Core::DocumentManager::expectDirectoryChange(workingDirectory);
QProcess process; QProcess process;
process.setWorkingDirectory(workingDirectory); process.setWorkingDirectory(workingDirectory);
process.setProcessEnvironment(env); process.setProcessEnvironment(env);
...@@ -1025,8 +1028,9 @@ bool VcsBasePlugin::runFullySynchronous(const QString &workingDirectory, ...@@ -1025,8 +1028,9 @@ bool VcsBasePlugin::runFullySynchronous(const QString &workingDirectory,
SynchronousProcess::stopProcess(process); SynchronousProcess::stopProcess(process);
return false; return false;
} }
if (flags & ExpectRepoChanges) // TODO tell the document manager that the directory now received all expected changes
Core::DocumentManager::unexpectDirectoryChange(workingDirectory); // if (flags & ExpectRepoChanges)
// Core::DocumentManager::unexpectDirectoryChange(workingDirectory);
return process.exitStatus() == QProcess::NormalExit && process.exitCode() == 0; return process.exitStatus() == QProcess::NormalExit && process.exitCode() == 0;
} }
......
Markdown is supported
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