1

I created this new clearcase element and checked out but when I try to check in, it is giving an error saying "no such file or directory". I can see this file checked out in an activity so how can I get this file check in?

Thanks.

user2370590
  • 837
  • 1
  • 16
  • 31

1 Answers1

1

The easiest way to debug this is through a shell

cd /path/to/parent/directory/of/the/file
cleartool ls

Look for the version and selection rule for that file.

Check also the config spec of your view

cleartool catcs
# or
cleartool edcs

See if the config spec does start with a:

element * CHECKEDOUT

For a "checked out but removed" status, you can refer to "How to recover a file from “Checkout but removed” state?".
The idea is to "undo checkout" a dummy file (same name, but empty), in order to recover it as before any local change.
There is no easy way to recover the local changes done while that file was ched out and present (except for some file recovery tool like Recuva, but it is a long shot).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I see the file is checked out and removed. Is there a way to recover it? – user2370590 Sep 05 '13 at 16:02
  • 1
    @user not that I know of. You can erase it with a dummy file with the same name (and no content): that would allow to *undo* checkout, getting back that file *before* any local change. – VonC Sep 05 '13 at 16:15