forked from qt-creator/qt-creator
ClearCase: Refactor ClearCaseSync
Moved code to the scope where it is used. Change-Id: I5af8e7cfca45b475d859e04ed448bf5793bf91fc Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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,
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user