Commit c5745c6e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

ClearCase: Optimize lookup for top level



...when opening files in the same dynamic view

Change-Id: I2713eb613b8077a86aaddf0a2a0eee52959800ac
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 03ddd0e5
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment