为什么 Perl 找不到我在 ClearCase 中的文件? [英] Why can't Perl find my file that is in ClearCase?

查看:25
本文介绍了为什么 Perl 找不到我在 ClearCase 中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这段 Perl 告诉我 ClearCase 中的文件不存在时;

This piece of Perl is telling me that a file in ClearCase doesn't exist when it does;

$x = "PATH/TO/FILE"
if (-e $x) {
   print "This file exists on the file system";
} else {
   print "I can't see this file";
}

有人见过这个吗?

某些文件返回正常.把我难住了.

Some files return fine. Got me stumped.

Clearcase 视图是动态的,托管在 unix 上.

Clearcase view is dynamic, hosted on unix.

当它们位于同一视图的同一文件夹中时,这段代码返回一个文件存在而另一个文件不存在.

This piece of code is returning that a file exists and another doesn't when they are in the same folder on the same view.

推荐答案

Clearcase 将其文件"存储为目录

Clearcase stores its 'files' as directories

Aric 想告诉你的是 ClearCase 使用的扩展路径名,扩展"是因为它用版本路径扩展了文件名.

What Aric is trying to tell you is that ClearCase uses extended path names, "extended" because it extends the file name with version path.

因此在动态视图中,可以描述任何文件以显示其版本控制路径:

So in a dynamic view, any file can be described to reveal its versioning path:

$ ct ls
myFile
$ ct descr -l myFile
myFile@@/main/3

在动态视图中,您实际上可以探索文件的版本(因此称为文件作为目录")部分

In a dynamic view, you can actually explore the versions of a file (hence the "file as directories") part

$ cd myFile@@
$ ls
main
$ cd main
$ ls
3
$ cat 3
... // content of third version of myFile

现在,如果在这里使用 ClearQuest(问题跟踪系统),它将引用 ClearCase 的活动(更改文件集集).

Now, if ClearQuest (the issue tracking system) were used here, it would reference activities (change set of file set) of ClearCase.

但是对于ClearCase,一个版本的文件(被ClearQuest引用或通过其他方式获得)可以很好地在动态视图中被删除(实际上是rmnamed").
这意味着文件可能会被 ClearQuest 或某些 ClearCase 活动引用,但不能在动态视图中通过 ClearCase 直接看到.
但是,它的扩展路径名仍然可以在同一个动态视图中访问.

But with ClearCase, a version of a file (referenced by ClearQuest or obtained through another mean) can very well has been deleted in the dynamic view ("rmnamed" actually).
Meaning a file may be referenced by ClearQuest or by some ClearCase activity, but not be visible directly with ClearCase in the dynamic view.
However, its extended path name would still be accessible in that same dynamic view.

这篇关于为什么 Perl 找不到我在 ClearCase 中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆