aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clearcase/clearcaseplugin.cpp
diff options
context:
space:
mode:
authorKnut Petter Svendsen <[email protected]>2012-09-20 19:41:35 +0300
committerOrgad Shaneh <[email protected]>2012-09-21 12:59:41 +0200
commite3c6506ee6de6046e256a0fc2ce6632c394e6de6 (patch)
treef04afe0fe57e33feea85bfce68baab788b9ea69c /src/plugins/clearcase/clearcaseplugin.cpp
parent19243163d412348f8e973e78a896cd994794db40 (diff)
ClearCase: Add some documentation
Change-Id: I6493fa638f10fd961852102913c46c828fa55ee5 Reviewed-by: Knut Petter Svendsen <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/clearcase/clearcaseplugin.cpp')
-rw-r--r--src/plugins/clearcase/clearcaseplugin.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp
index 9b078c902ea..bf3cf43c132 100644
--- a/src/plugins/clearcase/clearcaseplugin.cpp
+++ b/src/plugins/clearcase/clearcaseplugin.cpp
@@ -210,6 +210,14 @@ bool ClearCasePlugin::isCheckInEditorOpen() const
return !m_checkInMessageFileName.isEmpty();
}
+/*! Find top level for view that contains \a directory
+ *
+ * - Snapshot Views will have the CLEARCASE_ROOT_FILE (view.dat) in its top dir
+ * - Dynamic views can either be
+ * - M:/view_name,
+ * - or mapped to a drive letter, like Z:/
+ * (drive letters are just examples)
+ */
QString ClearCasePlugin::findTopLevel(const QString &directory) const
{
// Snapshot view
@@ -678,6 +686,12 @@ bool ClearCasePlugin::vcsUndoCheckOut(const QString &workingDir, const QString &
return !response.error;
}
+
+/*! Undo a hijacked file in a snapshot view
+ *
+ * Runs cleartool update -overwrite \a fileName in \a workingDir
+ * if \a keep is true, renames hijacked files to <filename>.keep. Otherwise it is overwritten
+ */
bool ClearCasePlugin::vcsUndoHijack(const QString &workingDir, const QString &fileName, bool keep)
{
if (ClearCase::Constants::debug)