Adapt to upstream findTopLevelForFile change

Change-Id: I699d524c7b9317ac74f3f2ca3027271923ab982b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-07-30 09:13:55 +02:00
parent d71e3fd441
commit 439d8cc52a
3 changed files with 6 additions and 10 deletions

View File

@@ -165,7 +165,7 @@ public:
void vcsDescribe(const FilePath &source, const QString &id) final;
Core::ShellCommand *createInitialCheckoutCommand(const QString &url,
const FilePath &baseDirectory,
const Utils::FilePath &baseDirectory,
const QString &localName,
const QStringList &extraArgs) final;
@@ -907,10 +907,9 @@ bool FossilPluginPrivate::isVcsFileOrDirectory(const FilePath &filePath) const
bool FossilPluginPrivate::managesDirectory(const FilePath &directory, FilePath *topLevel) const
{
QFileInfo dir(directory.toString());
const QString topLevelFound = m_client.findTopLevelForFile(dir);
const FilePath topLevelFound = m_client.findTopLevelForFile(directory);
if (topLevel)
*topLevel = FilePath::fromString(topLevelFound);
*topLevel = topLevelFound;
return !topLevelFound.isEmpty();
}