如何在clearcase中查找文件

发布于 2024-11-16 11:58:31 字数 140 浏览 3 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光暖心i 2024-11-23 11:58:31

包含机制与 ClearCase 无关,这意味着:
如果存在包含路径(例如“include path/afile”),则该文件应该位于相对于您的文件的“apath”中。如果这是“include afile”,则它应该与您当前的文件位于同一目录中。

但是如果不是,则意味着它已被删除(即它存在于父目录的以前版本中,但所述目录的当前版本已取消引用该文件)。
这将很好地解释为什么你似乎找不到它。

在这种情况下,您需要cleartool find,与选项一起使用不可见

–nvi/sible

仅包括视图中不可见(没有标准路径名)的元素及其分支和版本。

(非标准路径表示“扩展路径名”,能够引用目录的先前版本中的文件)

选项 -all 也可能有所帮助,以便查看所有 vob(在这种情况下)文件被移动,然后被删除!)。

-all

使用 pname 参数,修改每个参数的含义以指定其整个 VOB,而不仅仅是单个文件或目录。
不带任何 pname 参数,指定包含当前工作目录的 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 option nvisible:

–nvi/sible

Includes only those elements, along with their branches and versions, that are not visible (do not have a standard path name) in the view.

(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!).

-all

With pname arguments, modifies the meaning of each argument to specify its entire VOB, not just a single file or directory.
Without any pname arguments, specifies the VOB containing the current working directory.

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.

世界等同你 2024-11-23 11:58:31

看一下cleartool find 命令。它与 linux find 命令非常相似。
自从我上次执行 CC 以来已经有一段时间了...但是,这是使用 Linux find 查找文件的方法

find . -type f -name lostheader.h -print

请参见例如 这里了解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

find . -type f -name lostheader.h -print

See e.g. here for an introduction to cleartool find

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文