forked from qt-creator/qt-creator
VCS: Invert Command -> runVcs dependency
* Unclutter runVcs * Enable more dynamic signal/slot usage in Command Change-Id: Ie97b17078778b0c86b74d5725a78e766828ac6d8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
80194f4ef4
commit
f2e4b2b9c8
@@ -1120,8 +1120,7 @@ SubversionPlugin::Version SubversionPlugin::svnVersion()
|
||||
args << QLatin1String("--version") << QLatin1String("-q");
|
||||
const Utils::SynchronousProcessResponse response =
|
||||
VcsBase::VcsBasePlugin::runVcs(QDir().absolutePath(), m_settings.binaryPath(),
|
||||
args, m_settings.timeOutMs(),
|
||||
VcsBase::VcsBasePlugin::sshPrompt(), 0);
|
||||
args, m_settings.timeOutMs());
|
||||
if (response.result == Utils::SynchronousProcessResponse::Finished &&
|
||||
response.exitCode == 0) {
|
||||
m_svnVersionBinary = m_settings.binaryPath();
|
||||
@@ -1156,7 +1155,7 @@ SubversionResponse SubversionPlugin::runSvn(const QString &workingDir,
|
||||
const QStringList completeArguments = SubversionPlugin::addAuthenticationOptions(arguments, userName, password);
|
||||
const Utils::SynchronousProcessResponse sp_resp =
|
||||
VcsBase::VcsBasePlugin::runVcs(workingDir, executable, completeArguments, timeOut,
|
||||
VcsBase::VcsBasePlugin::sshPrompt(), flags, outputCodec);
|
||||
flags, outputCodec);
|
||||
|
||||
response.error = sp_resp.result != Utils::SynchronousProcessResponse::Finished;
|
||||
if (response.error)
|
||||
|
Reference in New Issue
Block a user