I am trying to find all versions on a particular branch, but the config spec of my working view should not matter (I want to work in a view with /main/LATEST
).
I am working on Windows. Assuming that the version has been created before 27.May.17:47 and I don't want to see the 0 version on my branch.
I tried to do that by using cleartool find
:
cleartool find M:\my_view.dv\MY_VOB\folder_x\folder_y\ -version "brtype(my_branch) && ! created_since(27-May.17:47) && ! version(...\my_branch\0)" -print
That works for all elements that have got at least a version \main\1
or later from which the element has been branched off to my_branch.
But for an element which has just got version \main\0
(because it has been created with a rule like "element * \main\0 -mkbranch my_branch
") it does not work.
So I tried using another cleartool find with "-nvisible
", but "-nvisible
" does not work without "-all
". So I have to use following:
cleartool find M:\my_view.dv\MY_VOB\folder_x\folder_y\ -all -nvisible -version "brtype(my_branch) && ! created_since(27-May.17:47) && ! version(...\my_branch\0)" -print
But because of the "-all
" option my path "M:\my_view.dv\MY_VOB\folder_x\folder_y\
" is completely ignored. Instead of just searching in my path it is searching the whole VOB, which is not what I want. Because it also gives me files under "M:\my_view.dv\MY_VOB\folder_z\
" as result.
So I either need to modify first query that it will give me also elements that have been created with "element * \main\0 -mkbranch my_branch
", or I need a second query that gives me elements that have been created with "element * \main\0 -mkbranch my_branch
" under a certain path only...
Any idea how to solve the problem without an additional script?