我使用的是 clearcase 版本 8.0.1.00。
Pwv
给我:
Working directory view: Core
Set view: ** NONE **
我想要这个:
Working directory view: Core64
Set view: ** NONE **
已经存在一个 Core64
View ,但是使用 setview
它给了我:
cleartool: Error: You cannot use the "setview" command with a snapshot view.
我在 BCPL/Core64/BCVOB/Admin/builds
路径下执行此操作。
最佳答案
因为 Core64
是一个 snapshot view ,您需要做的就是转到 (cd) 其根文件夹(可以是您决定创建它的任何位置)。
另见“Difference between Snapshot and Dynamic Views”
然后 cleartool pwv
会给你 Core64。
它会在 Core64
View 的根文件夹的任何文件夹或子文件夹中执行此操作。但是 ClearCase
本身并不知道根文件夹在哪里。
参见“How to find the view location in my Linux home dir”。
正如我在“Find local copy of files in snapshot view”中提到的:
The only link between your snapshot view and its root directory is the
.view.dat
hidden file which contains theuuid
of the snapshot view.
注意:即使 Core64
是一个动态 View ,我还是建议不要使用 cleartool setview
(但是动态 View 的完整路径查看:/view/Core64/vobs/aVob
)。参见“working in /vobs/some/path
versus /view/view-tag-name/vobs/some/path
”
同样,该路径在这里不正确,因为 Core64
是快照 View ,而 /view
是动态 View 的安装点。
关于linux - Clearcase,如何更改工作目录 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41597769/