Commit b55dcc29 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

ClearCase: Fix top level optimization for unix

Also use the optimization for snapshot views as well.

Change-Id: Ic8c2d9f874f09b6b3b4a50eb8c5d396f10ecd6cd
Reviewed-by: default avatarKnut Petter Svendsen <>
Reviewed-by: default avatarTobias Hunger <>
parent 34354148
......@@ -224,6 +224,10 @@ bool ClearCasePlugin::isCheckInEditorOpen() const
QString ClearCasePlugin::findTopLevel(const QString &directory) const
if ((directory == m_topLevel) ||
return m_topLevel;
// Snapshot view
QString topLevel =
findRepositoryForDirectory(directory, QLatin1String(ClearCase::Constants::CLEARCASE_ROOT_FILE));
......@@ -231,8 +235,6 @@ QString ClearCasePlugin::findTopLevel(const QString &directory) const
return topLevel;
// Dynamic view
if (directory.startsWith(m_topLevel) && == QLatin1Char('/'))
return m_topLevel;
bool isDynamic;
ccGetView(directory, &isDynamic);
if (isDynamic) {
Supports Markdown
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