forked from qt-creator/qt-creator
CVS: Fix log for project and repository
When the parameter file is empty, the string list passed to runCvs() contained `log ''` which fails. What we really want to run here is simply `log`. Change-Id: I1e76809a37d1fd6247cddc8040fb76ddf72936d2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
88bea338b1
commit
ccb4619238
@@ -944,7 +944,10 @@ void CvsPluginPrivate::filelog(const FilePath &workingDir,
|
|||||||
// no need for temp file
|
// no need for temp file
|
||||||
const QString id = VcsBaseEditor::getTitleId(workingDir, QStringList(file));
|
const QString id = VcsBaseEditor::getTitleId(workingDir, QStringList(file));
|
||||||
const FilePath source = VcsBaseEditor::getSource(workingDir, file);
|
const FilePath source = VcsBaseEditor::getSource(workingDir, file);
|
||||||
const auto response = runCvs(workingDir, {"log", file}, RunFlags::None, codec);
|
QStringList args = {"log"};
|
||||||
|
if (!file.isEmpty())
|
||||||
|
args.append(file);
|
||||||
|
const auto response = runCvs(workingDir, args, RunFlags::None, codec);
|
||||||
if (response.result() != ProcessResult::FinishedWithSuccess)
|
if (response.result() != ProcessResult::FinishedWithSuccess)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user