Skip to content
Snippets Groups Projects
Commit a78bc196 authored by Knut Petter Svendsen's avatar Knut Petter Svendsen
Browse files

ClearCase: Refactor ClearCaseSync


Moved code to the scope where it is used.

Change-Id: I5af8e7cfca45b475d859e04ed448bf5793bf91fc
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 4eb71aa2
No related branches found
No related tags found
No related merge requests found
...@@ -65,11 +65,7 @@ void ClearCaseSync::run(QFutureInterface<void> &future, const QString &topLevel, ...@@ -65,11 +65,7 @@ void ClearCaseSync::run(QFutureInterface<void> &future, const QString &topLevel,
if (settings.disableIndexer) if (settings.disableIndexer)
return; return;
QStringList vobs;
if (!settings.indexOnlyVOBs.isEmpty())
vobs = settings.indexOnlyVOBs.split(QLatin1Char(','));
else
vobs = m_plugin->ccGetActiveVobs();
QDir topLevelDir(topLevel); QDir topLevelDir(topLevel);
QStringList args(QLatin1String("ls")); QStringList args(QLatin1String("ls"));
if (hot) { if (hot) {
...@@ -89,6 +85,13 @@ void ClearCaseSync::run(QFutureInterface<void> &future, const QString &topLevel, ...@@ -89,6 +85,13 @@ void ClearCaseSync::run(QFutureInterface<void> &future, const QString &topLevel,
foreach (const QString &file, files) foreach (const QString &file, files)
m_plugin->setStatus(topLevelDir.relativeFilePath(file), FileStatus::Unknown, false); m_plugin->setStatus(topLevelDir.relativeFilePath(file), FileStatus::Unknown, false);
args << QLatin1String("-recurse"); args << QLatin1String("-recurse");
QStringList vobs;
if (!settings.indexOnlyVOBs.isEmpty())
vobs = settings.indexOnlyVOBs.split(QLatin1Char(','));
else
vobs = m_plugin->ccGetActiveVobs();
args << vobs; args << vobs;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment