How can we find the branch name to which my ClearCase view is pointed to?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The thing is, a view doesn’t point to one branch.
It only combines various element selection rules in the config spec, which makes it reflect a version on a branch at a given time, for a given tree/file.
See:
See also the debate on selection by composition vs. selection by revision to better understand why, by default, a ClearCase config spec doesn’t necessary reference one branch.
The simpler way to check what is the current branch is:
cd /my/view/path/to/relevant/directorycleartool lsExample:
That view, for the
path/to/relevant/directorypath, point to branchMY_BRANCH_DevNote: With ClearCase UCM, this is simpler:
will give you the name of the name of the Stream (and by extension, the associated branch) on which the views points to.