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

查看:108
本文介绍了为什么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.

公文包视图是动态的,位于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天全站免登陆