CVS functions

After the implementation you can use the CVS functions in the GEDI project view.

A right mouse click on a project file or a directory opens a context menu with the available CVS functions.

Figure 1. Context menu in the project view

The following table describes all CVS functions, which has been implemented into GEDI. Additionally the table tells you whether a function has a recursive behavior, i.e. whether it affects directories (incl. subdirectories).

CVS function Recursive Description
CVS log No Shows the history of a file. It displays file informations and the location of this file. Additionally it outputs all revision numbers with author, date and comment.
CVS status Yes

Shows the actually CVS status in the "Status" column of the project view.

The following statuses are possible:

Status Meaning
Unknown The status is unknown.
Not in CVS The file has been created in the local workspace and is not existing in the CVS repository yet.
Locally Modified Since the last CVS update or commit the file has been locally modified.
Up-to-date Since the last CVS update or commit the file has not been locally modified and equals to the revision in the CVS repository.
Needs Patch Since the last CVS update or commit the file has been committed from an other workspace. The local version needs a patch.
Needs Merge

Since the last CVS update or commit the file has been committed from an other workspace and has been also in the local workspace changed.

In most cases this conflict can be resolved by CVS, if it is a script file. In case of panels you have to merge manually.

CVS update Yes

This function updates the selected file/directory.

If changes in a file have been committed from other workspaces, this function updates the selected file from the CVS repository. The updated files change their status to "Up-to-date".

In case of a CVS conflict, i.e. the status is "Needs Merge" and CVS can't merge this files autonomous, so CVS renames this file in <filename><revision_number>. This revision number equals to this one in the CVS repository.

The merge of this files have to be executed manually.

CVS diff No Shows the differences between the selected file in your local workspace and the file in the CVS repository. A tool to compare the files is not included in WinCC OA and has to be installed separately. The only requirement for the tool is, that it is able to compare two filenames. If no additional tool is installed a default diff of the CVS will be performed (only textual result).
CVS commit Yes Updates a file/directory in the CVS repository to the state of your local changes. The updated files change their status to "Up-to-date".
CVS add Yes Adds the CVS repository the selected file/directory. A CVS commit isn't necessary anymore. The added files change their status to "Up-to-date".
CVS remove No Removes the selected file from the local workspace and the CVS repository.