Commit 68045c1d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Vcs: Move resetCachedVcsInfo into VcsBaseClientImpl



Change-Id: I544472d2024bd82039908c67ab133556617b4fdb
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 07d6757c
......@@ -3286,8 +3286,7 @@ bool GitClient::cloneRepository(const QString &directory,const QByteArray &url)
workingDirectory.cdUp();
const SynchronousProcessResponse resp =
synchronousGit(workingDirectory.path(), arguments, flags);
// TODO: Turn this into a VcsBaseClient and use resetCachedVcsInfo(...)
VcsManager::resetVersionControlForDirectory(workingDirectory.absolutePath());
resetCachedVcsInfo(workingDirectory.absolutePath());
return (resp.result == SynchronousProcessResponse::Finished);
}
}
......
......@@ -171,6 +171,11 @@ QProcessEnvironment VcsBaseClientImpl::processEnvironment() const
return environment;
}
void VcsBaseClientImpl::resetCachedVcsInfo(const QString &workingDir)
{
Core::VcsManager::resetVersionControlForDirectory(workingDir);
}
int VcsBaseClientImpl::vcsTimeout() const
{
return settings().intValue(VcsBaseClientSettings::timeoutKey);
......@@ -627,11 +632,6 @@ VcsBaseEditorWidget *VcsBaseClient::createVcsEditor(Core::Id kind, QString title
return baseEditor;
}
void VcsBaseClient::resetCachedVcsInfo(const QString &workingDir)
{
Core::VcsManager::resetVersionControlForDirectory(workingDir);
}
void VcsBaseClient::statusParser(const QString &text)
{
QList<VcsBaseClient::StatusItem> lineInfoList;
......
......@@ -90,6 +90,9 @@ public:
virtual QProcessEnvironment processEnvironment() const;
protected:
void resetCachedVcsInfo(const QString &workingDir);
private:
void saveSettings();
void commandFinishedGotoLine(QWidget*);
......@@ -214,8 +217,6 @@ protected:
const char *registerDynamicProperty,
const QString &dynamicPropertyValue) const;
void resetCachedVcsInfo(const QString &workingDir);
private:
void statusParser(const QString&);
void annotateRevision(const QString&, const QString&, const QString&, int);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment