forked from qt-creator/qt-creator
ClearCase: Optimize lookup for top level
...when opening files in the same dynamic view Change-Id: I2713eb613b8077a86aaddf0a2a0eee52959800ac Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
03ddd0e540
commit
c5745c6e78
@@ -216,6 +216,8 @@ QString ClearCasePlugin::findTopLevel(const QString &directory) const
|
||||
if (!topLevel.isEmpty() || !clearCaseControl()->isConfigured())
|
||||
return topLevel;
|
||||
// Dynamic view
|
||||
if (directory.startsWith(m_topLevel) && directory.at(m_topLevel.size()) == QLatin1Char('/'))
|
||||
return m_topLevel;
|
||||
bool isDynamic;
|
||||
ccGetView(directory, &isDynamic);
|
||||
if (isDynamic) {
|
||||
|
Reference in New Issue
Block a user