To find all items that are also deleted or not selected by your config_spec, add –nvisible to the search options.
For comparison, I have a shell script called freeze-list that more or less runs the same find command as yours (redirecting output to <label>.versions ).
Then I have other perl scripts that take two such files, read them and compare each element. I have, for example, freeze-compare-text for simple output diff -u , freeze-compare-kdiff3 to start kdiff3 comparison for each file where there are some changes (with some intelligence, to avoid false positives when element 0 is on the new branch is identical to the start version, etc.). And I also have freeze-compare-diffstat (basically outputting output to diffstat).
If you are just interested in finding changes between shortcuts as a one-time operation, you can run
ct find -avobs –nvisible -version "lbtype(label1)" -print | sort > label1.versions ct find -avobs –nvisible -version "lbtype(label2)" -print | sort > label2.versions comm -3 label1.versions label2.versions
which will list all elements that do not have the same version in label1 and label2.
source share