One solution is simply to setup a new config spec with your label as a starting point, and a mkbranch
rule (to create a new branch instead of working on the current one).
That way, you would see and modify only the files with the labelled used before the wrong checkins.
The same idea can be applied with UCM (using a sub-stream from a baseline done just before the wrong checkins)
That being said, for a relatively small number of files to revert, a manual solution based on a find query is possible (windows syntax):
cleartool find -all -element "{lbtype_sub(REL1)" -exec "cleartool find \"%CLEARCASE_PN%\" -version "{created_since(label-date) && brtype(label_branch) }" -print
The idea is to combine a first query to find all elements (files or directories) which have that labels amongst their versions, and then to use that element (referenced through \"%CLEARCASE_PN%\"
) to find if there is any version created since the date of the label and in the right branch (the one where you did the wrong commits).
This, combined with a negative or subtractive merge, could automate the process.