Find local copy of files in snapshot view

非 Y 不嫁゛ 提交于 2019-11-26 21:07:41
VonC

I confirm that you cannot find the root directory of a snapshot view only knowing its view tag: a snapshot view can be loaded in several separate directories if you want.

The only link between your snapshot view and its root directory is the .view.dat hidden file which contains the uid of the view.

Plus, the hostname attached to a view has nothing to do with the fact it is loaded or not on a computer. It is the name of the view server (which can be your own desktop, or can be a centralized server). It is on that server that the view.exe process managing all ClearCase-related operations for that view.

So, with your script (like for instance a perl script), you don't really need CAL at first to find that view: you need first to be able to look the the view.dat file, extract the uid, and then check if it is the same than the view uid (lsview -l -full -pro) you are looking for.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!