Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

clearcase - how to find files in a given branch

I noticed that when doing code view, people here in my company usually just give the branch in which his work is done, and nothing else. So I guess there must be a easy way to find out all the files that has a version in the given branch which is the same thing to find all the files that has been changed.

Yes, I don't know the expected "easy way" to find files in certain branch, so need your help and thanks in advance.

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

You can quickly list all files from a particular branch:

cleartool find . -type f -branch "brtype(abranch)" -print

I would recommend combining that with:

  • -user to limit to a particular user, in case several users use the same branch.
    cleartool find . -type f -branch "brtype(abranch)" -user aloginname -print
  • -created_since filter, to find all elements created since a certain date, in case their is incremental review for a work done on the same branch.
    cleartool find . -type f -branch "brtype(abranch)" -element "{created_since(10-Jan)}" -user aloginname -print

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...