I am using clearcase on linux. I opened a file and this file inclueds an another file, but I try to search where is the included file, I checked some folder(not all the folder, because I contains so many subfolders), can not find it. Is there any method to find a file based on the file name in clearcase? can anyone help me on this?
Share
The inclusion mechanism isn’t tied to ClearCase, meaning:
if there is an inclusion path (like “include path/afile), that file should be in “apath”, relative to your file. if this is “include afile”, it should be in the same directory than your current file.
But if it isn’t, that means it has been deleted (i.e. it was present in a former version of the parent directory, but the current version of said directory has dereferenced that file).
That would be a good explanation why you don’t seem able to find it.
In that case, you need
cleartool find, used with the optionnvisible:(non standard path means “extended pathname“, able to reference a file in a previous version of a directory)
The option
-allmight help also, in order to look in all the vob (in case of that file being moved, then deleted!).Note: When you use find –all only one instance of an element is reported, even if one or more VOB hard links point to the element. Either the element name or one of the VOB hard links is displayed.
See this SO answer for additional find examples.