Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
493 views
in Technique[技术] by (71.8m points)

cleartool - how to find checked out files in a clearcase (windows) snapshot view?

On Unix in a dynamic view, I run the following to find checked out files:

cleartool lsco -s -cview -me -avobs

In a windows snapshot view, this use of -avobs doesn't appear to work. On a vob by vob basis I can run:

cleartool lsco -s -cview -me -all

which returns the checked out names to me for that vob.

Is there a way to tell what vobs have checkouts in a Windows snapshot view? (not sure if Windows vs. Unix is a factor here). I'd like to script the lsco, executing it in each of the vobs in question.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Considering each vobs is a direct child directory of the root directory of your snapshot view, all you need to do is to:

  • list every direct child directory (whose name represents a vob)
  • execute your cleartool lsco within each of those directories.

This is consistent with the issue around the usage of "-cview -avobs" mention in this technote:

Local fix

Do not use lsco -cview -avobs.
You needs to run cleartool lsco while cd'd in each Unix vob in the Windows snapshot view.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...