To compare versions with a version in a dynamic view (UNIX system and Linux)
About this task
Tip: To use this procedure, your workstation
must support dynamic views.
Procedure
- Use cleartool startview to
start a dynamic view. For example, to compare a version in your view with
a version in a dynamic view named joe_v1.4_cropcircle, enter the following
command:
cleartool startview joe_v1.4_cropcircle
- Use cleartool diff (or
any other diff command) with view-extended naming. For example, to
compare /guivob/prog.c in your view with /guivob/prog.c in joe_v1.4_cropcircle,
enter the following command:
cleartool diff -graphical /guivob/prog.c /view/joe_v1.4_cropcircle/guivob/prog.c
Results
Sometimes, the same element appears at different paths in different views. Directory-level changes, from simple renaming operations to wholesale reorganizations, can be tracked. In such situations, a team member may direct your attention to a particular element by using a path that is not valid in your view.
To determine the path in your own view, pass
the path in the different view to a describe –cview command.
For example:
cleartool describe –cview /view/joe_v1.4_cropcircle/project/include/lib.c
version "/guivob/lib.c@@/main/1" created 19-May-02.14:46:00 by rick (rick.devt@saturn)
.
.
You
can then compare your version of the element with your team member’s version
as follows:
cleartool diff –graphical /guivob/lib.c@@/main/1 \
/view/joe_v1.4_cropcircle/project/include/lib.c