如何在ClearCase视图中查找私有文件(view-private)

本文详细介绍了在ClearCase中使用cleartoolls命令创建静态视图和动态视图的方法。包括如何通过cleartoolls-r-view_only命令创建静态视图,并查看未加载文件的状态;以及如何使用cleartoollsprivate命令创建动态视图,需要注意的是该命令不适用于静态视图。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

静态视图:

用cleartool ls -recurse -view_only命名, 例如:

E:/user1_snap/my_test_vob>cleartool ls

bye.txt.unloaded
clearmake@@/main/4                      Rule: /main/LATEST
cs.txt@@/main/4 [not loaded] Rule: /main/LATEST
customer service@@/main/CHECKEDOUT from /main/4 [not loaded] Rule: CHECKEDOUT
foo.qmsg@@/main/0                       Rule: /main/LATEST
foo.txt
foo2.qmsg@@/main/0                      Rule: /main/LATEST
hello.txt@@/main/2 [not loaded]         Rule: /main/LATEST
lost+found@@/main/0 [not loaded]        Rule: /main/LATEST
lots_of_files@@/main/1 [not loaded]     Rule: /main/LATEST

E:/user1_snap/my_test_vob>cleartool ls -r -view_only
bye.txt.unloaded
foo.txt
./clearmake/goodbye.txt@@/main/CHECKEDOUT from /main/2 Rule: CHECKEDOUT
./customer service/import/hello.doc@@/main/CHECKEDOUT from /main/2 [not loaded, checkedout but removed]


动态视图:

用cleartool lsprivate命令, 但不能列出共享的DO(derived objects), 例如:

I:/material>cleartool lsprivate
/material/hello/Debug/StdAfx.obj
/material/hello/Debug/hello.exe
/material/hello/Debug/hello.ilk
/material/hello/Debug/hello.obj
/material/hello/Debug/hello.pch
/material/hello/Debug/hello.pdb
/material/hello/Debug/hello.res
/material/hello/Debug/vc60.idb
/material/hello/Debug/vc60.pdb
/material/project1/Debug/StdAfx.obj
/material/project1/Debug/project1.exe
/material/project1/Debug/project1.ilk
/material/project1/Debug/project1.obj
.........

注意: cleartool lsprivate命令不能在静态View中使用,否则会有如下错误提示:

cleartool: Error: This command is not supported in a snapshot view.

在静态View中只能使用cleartool ls -r -view_only命令来得到相应的输出。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值