我的目标是查询某个VOB和开发人员,找到他/她从X日期修改的文件,并将它们一一传递给版本树程序。
在这里,我可以列出自 11 月 20 日以来我的所有工作:
cleartool find /vobs/wran_cm/wran_cm_bsim -version "{created_by(egronei) && created_since(20-Nov-12)}" -print
其输出为:
/vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/AddBatchTreeComponent.java@@/main/dev/o13 .2_ld/1 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.oss.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/AddBatchTreeComponent.java@@/main/dev /o13.2_ld/0 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.oss.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/AddNodeTabBase.java@@/main/at_ossrc_dev /dev/o13.2_ld/1 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.oss.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/AddNodeTabBase.java@@/main/at_ossrc_dev /dev/o13.2_ld/0 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/AddNodeTreeComponent.java@@/main/at_ossrc_dev/dev /o13.2_ld/1 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/AddNodeTreeComponent.java@@/main/at_ossrc_dev/dev /o13.2_ld/0 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/ResultsTab.java@@/main/at_ossrc_dev/dev /o13.2_ld/1 /vobs/wran_cm/wran_cm_bsim/common-src/client/plugins/com.bsim.ui/src/main/java/com/bsim/ui/tabs/addnode/common/ResultsTab.java@@/main/at_ossrc_dev/dev /o13.2_ld/0
我可以使用 grep 过滤一行并仅将该文件路径传递给版本树,但理想情况下,我希望它以某种方式成为啤酒并将文件名逐个传递(用于代码审查)。这是我的 grep 尝试:
cleartool find /vobs/wran_cm/wran_cm_bsim -version "{created_by(egronei) && created_since(20-Nov-12)}" -print | grep -i "language.properties" | xlsvtree