如何找出ClearCase视图加载的文件在哪里?
我们使用 ClearCase UCM 和 base。我们面临的悬而未决的问题之一是,如何通过给定的视图存储目录路径找出快照视图的加载文件所在的位置?
例如,我们有一个位于 C:\views\myview.vws
中的视图
,有时等效的加载文件位于 C:\views\myview
目录中,但有时不是。我正在寻找一种方法来找到它在哪里。
我试图通过 cleartool lsview -l
和 cleartool desc
找到它 - 没有帮助。 Windows 注册表也不提供这个答案(AFAIK)。
We use both ClearCase UCM and base. One of the open questions we have is, how to find out where the loaded files of snapshot views are reside, by a given path of view storage directory?
e.g. We have a view located in C:\views\myview.vws
Sometimes the equivalent loaded files are in C:\views\myview
directory, but sometimes not. I'm looking for a way to find where it is.
I tried to find it out by cleartool lsview -l
and cleartool desc
- does not help.
The Windows registry does not provide this answer as either (AFAIK).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我确认没有快照视图(无论是否为 UCM)实际所在位置的信息。
您需要意识到,通过简单地复制您可以在任何快照视图的根目录中看到的
.view.dat
(隐藏)文件,您将创建目标目录(您在其中复制.view.dat
文件)快照视图的根。将其复制到三个不同的目录,并且您将相同快照视图复制三次!
将其复制到
C:\Windows\System32
,该目录就成为快照视图根目录!最好的办法是搜索那些
.view.dat
(或 Windows 上的view.dat
):这些文件包含视图的 uid(唯一 ID),允许您使其与您在视图存储中看到的内容相一致。I confirm there is not information where a snapshot view (UCM or not) actually resides.
You need to realize that by simply copying the
.view.dat
(hidden) file that you can see at the root directory of any of your snapshot view, you will make the destination directory (in which you copy the.view.dat
file) the root of your snapshot view.Copy it to three different directories, and you have the same snapshot view replicated three times!
Copy it to
C:\Windows\System32
, and that directory becomes a snapshot view root directory!You best bet is to search for those
.view.dat
(orview.dat
on Windows): those files contains the uid (unique id) of the view, allowing you to reconcile that with what you see within the view storage.