If you have two separate issues that you want to consider separately, it is best to isolate them in their own respective branches.
Create two branches from a common ancestor (a point in time before working on either issue)
- in branch
Issue1
, report your modifications dedicated to issue 1: you can then set the label Label1
.
- in branch
Issue2
, report your modifications dedicated to issue 2: you can then set the label Label2
without worrying about issue 1.
If having two branches (and two views) is not practical, then you would have to look for all versions not labelled Issue1 in order to set your Label2:
cleartool find . -cview -version !lbtype(Label1) -exec "cleartool mklabel Label2 \"%CLEARCASE_XPN%\""
Or you would need to find versions labelled both Label1
and Label2
, and remove the Label2
one:
cleartool find . -cview -version "lbtype(Label1) && lbtype(Label2)" -exec "cleartool rmlabel Label2 \"%CLEARCASE_XPN%\""