forked from qt-creator/qt-creator
VCS: VcsBaseClient::vcsFullySynchronousExec returns a SynchronousProcessResponse
Change-Id: Ic155da2ed1fd36f1f91327ac90f34a5cad3c210e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -877,21 +877,19 @@ SubversionResponse SubversionPlugin::runSvn(const QString &workingDir,
|
||||
int timeOutS, unsigned flags,
|
||||
QTextCodec *outputCodec) const
|
||||
{
|
||||
const FileName executable = client()->vcsBinary();
|
||||
SubversionResponse response;
|
||||
if (executable.isEmpty()) {
|
||||
if (client()->vcsBinary().isEmpty()) {
|
||||
response.error = true;
|
||||
response.message =tr("No subversion executable specified.");
|
||||
return response;
|
||||
}
|
||||
|
||||
const SynchronousProcessResponse sp_resp =
|
||||
VcsBasePlugin::runVcs(workingDir, executable, arguments, timeOutS,
|
||||
flags, outputCodec);
|
||||
const SynchronousProcessResponse sp_resp
|
||||
= client()->vcsFullySynchronousExec(workingDir, arguments, flags, timeOutS, outputCodec);
|
||||
|
||||
response.error = sp_resp.result != SynchronousProcessResponse::Finished;
|
||||
if (response.error)
|
||||
response.message = sp_resp.exitMessage(executable.toString(), timeOutS);
|
||||
response.message = sp_resp.exitMessage(client()->vcsBinary().toString(), timeOutS);
|
||||
response.stdErr = sp_resp.stdErr();
|
||||
response.stdOut = sp_resp.stdOut();
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user