Adapt to upstream changes

Change-Id: I508d2944eb16c9f72980a55989f57ce71474c0b0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-20 18:44:30 +02:00
parent 3e322ba3a6
commit 294f283192

View File

@@ -1087,8 +1087,8 @@ void FossilClient::revertFile(const FilePath &workingDir,
// Indicate file list // Indicate file list
VcsCommand *cmd = createCommand(workingDir); VcsCommand *cmd = createCommand(workingDir);
const QStringList files = QStringList(workingDir.toString() + "/" + file); const QStringList files = QStringList(workingDir.toString() + "/" + file);
connect(cmd, &VcsCommand::finished, this, [this, files](bool success) { connect(cmd, &VcsCommand::done, this, [this, files, cmd] {
if (success) if (cmd->result() == ProcessResult::FinishedWithSuccess)
emit changed(files); emit changed(files);
}); });
enqueueJob(cmd, args); enqueueJob(cmd, args);
@@ -1116,8 +1116,8 @@ void FossilClient::revertAll(const FilePath &workingDir, const QString &revision
// Indicate repository change // Indicate repository change
VcsCommand *cmd = createCommand(workingDir); VcsCommand *cmd = createCommand(workingDir);
const QStringList files = QStringList(workingDir.toString()); const QStringList files = QStringList(workingDir.toString());
connect(cmd, &VcsCommand::finished, this, [this, files](bool success) { connect(cmd, &VcsCommand::done, this, [this, files, cmd] {
if (success) if (cmd->result() == ProcessResult::FinishedWithSuccess)
emit changed(files); emit changed(files);
}); });
enqueueJob(createCommand(workingDir), args); enqueueJob(createCommand(workingDir), args);