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:
Orgad Shaneh
2012-08-27 10:32:06 +03:00
committed by Tobias Hunger
parent 03ddd0e540
commit c5745c6e78

View File

@@ -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) {