如何在clearcase中查找文件
我在Linux上使用clearcase。我打开了一个文件,该文件包含另一个文件,但我尝试搜索包含的文件在哪里,我检查了一些文件夹(不是所有文件夹,因为我包含很多子文件夹),找不到它。有没有什么方法可以根据clearcase中的文件名查找文件?谁能帮我解决这个问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
包含机制与 ClearCase 无关,这意味着:
如果存在包含路径(例如“include path/afile”),则该文件应该位于相对于您的文件的“apath”中。如果这是“include afile”,则它应该与您当前的文件位于同一目录中。
但是如果不是,则意味着它已被删除(即它存在于父目录的以前版本中,但所述目录的当前版本已取消引用该文件)。
这将很好地解释为什么你似乎找不到它。
在这种情况下,您需要
cleartool find
,与选项一起使用不可见
:(非标准路径表示“扩展路径名”,能够引用目录的先前版本中的文件)
选项
-all
也可能有所帮助,以便查看所有 vob(在这种情况下)文件被移动,然后被删除!)。注意:当您使用 find –all 时,即使一个或多个 VOB 硬链接指向该元素,也只会报告该元素的一个实例。显示元素名称或 VOB 硬链接之一。
有关其他查找示例,请参阅此SO 答案。
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
-all
might 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.
看一下cleartool find 命令。它与 linux find 命令非常相似。
自从我上次执行 CC 以来已经有一段时间了...但是,这是使用 Linux find 查找文件的方法
请参见例如 这里了解cleartool find的介绍
Have a look at the cleartool find command. It's quite similar to the linux find command.
Been a while since I last did CC... However, this is is how you can locate a file using Linux find
See e.g. here for an introduction to cleartool find