1

我想找出两个透明标签之间的区别,我之前确实使用过这个:

cleartool find -all -element "{lbtype_sub(!:1) && lbtype_sub(!:2)}" -version "{lbtype(!:2) && (! lbtype(!:1))}" -print

上面命令的问题是:

  • 1/ 如果有任何新创建/删除的文件,该文件将不会被打印。只会打印更高的目录名称。

前任:

For label 001:
/directoryA/:
a.cpp b.cpp 

For label 002: 
/directoryA/:
a.cpp b.cpp(new version) c.cpp(new element)

如果我们使用前面的命令,打印的结果只会是

/directoryA@@.... 
/directoryA/b.cpp@@...

我也想要一个打印的命令c.cpp

4

1 回答 1

0

You might need to complete your query with an additional separate query:

You could try to list all versions labeled LBL2 AND not LBL1 (i.e. new elements)

cleartool find -all -element "{(! lbtype_sub(!:1)) && lbtype_sub(!:2)}" -version "{lbtype(!:2)}" -print

Trying to do all in one command is difficult to do because you cannot easily combined all elements with 2 labels, with all elements with only the second label.

于 2013-04-22T14:16:37.017 回答