7.8 Regenerating the .view.dat File

The root directory of a snapshot view contains a hidden file, .view.dat. If you delete this file inadvertently, ClearCase no longer identifies the view as a ClearCase object, and you can no longer perform ClearCase operations on files or directories loaded in the view.

To Regenerate the .view.dat File

  1. Open a command shell.

  2. Type this command:

  3. Perl ccase-home-dir/etc/utils/regen_view_dot_dat.pl \
    [ -tag snapshot-view-tag ] snapshot-view-pathname

    For example:

    Perl /usr/atria/etc/utils regen_view_dot_dat.pl \
    -tag pat_v1.4_cropcircle_sv \
    ~/pat_v1.4_cropcircle_sv

    If the view storage directory is under the root directory of the view, you do not need to use the -tag snapshot-view-tag argument.