forked from qt-creator/qt-creator
Utils: Rename QtcProcess::Result::Finished to FinishedWithSuccess
To make clear that this is not just any finish. Also change FinishedError to FinishedWithError, to create symmetry. Also adapt enum member description to reality. Change-Id: I13e05391eb86fdb24e2ae660f14dfddb282e1104 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -94,7 +94,7 @@ bool SubversionClient::doCommit(const QString &repositoryRoot,
|
||||
SynchronousProcess proc;
|
||||
vcsSynchronousExec(proc, repositoryRoot, args << svnExtraOptions << escapeFiles(files),
|
||||
VcsCommand::ShowStdOut | VcsCommand::NoFullySync);
|
||||
return proc.result() == QtcProcess::Finished;
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
void SubversionClient::commit(const QString &repositoryRoot,
|
||||
@@ -153,7 +153,7 @@ QString SubversionClient::synchronousTopic(const QString &repository) const
|
||||
svnVersionBinary.append(HostOsInfo::withExecutableSuffix("svnversion"));
|
||||
SynchronousProcess proc;
|
||||
vcsFullySynchronousExec(proc, repository, {svnVersionBinary, args});
|
||||
if (proc.result() != QtcProcess::Finished)
|
||||
if (proc.result() != QtcProcess::FinishedWithSuccess)
|
||||
return QString();
|
||||
|
||||
return proc.stdOut().trimmed();
|
||||
|
||||
Reference in New Issue
Block a user