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)
|
||||
return;
|
||||
QStringList vobs;
|
||||
if (!settings.indexOnlyVOBs.isEmpty())
|
||||
vobs = settings.indexOnlyVOBs.split(QLatin1Char(','));
|
||||
else
|
||||
vobs = m_plugin->ccGetActiveVobs();
|
||||
|
||||
QDir topLevelDir(topLevel);
|
||||
QStringList args(QLatin1String("ls"));
|
||||
if (hot) {
|
||||
@@ -89,6 +85,13 @@ void ClearCaseSync::run(QFutureInterface<void> &future, const QString &topLevel,
|
||||
foreach (const QString &file, files)
|
||||
m_plugin->setStatus(topLevelDir.relativeFilePath(file), FileStatus::Unknown, false);
|
||||
args << QLatin1String("-recurse");
|
||||
|
||||
QStringList vobs;
|
||||
if (!settings.indexOnlyVOBs.isEmpty())
|
||||
vobs = settings.indexOnlyVOBs.split(QLatin1Char(','));
|
||||
else
|
||||
vobs = m_plugin->ccGetActiveVobs();
|
||||
|
||||
args << vobs;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user