我想创建一个动态视图,仅显示用户为特定标签创建/修改的文件。
现在,我列出了标签中的所有文件,并将其与之前的标签进行比较。
如果我必须使用cleartool 来查找文件,那对我来说没问题。我希望这个过程比现在更加自动化。
另一个选择是,我可以简单地查看特定用户的差异吗?这样,我就更有可能了解该文件的历史记录。如果开发人员尝试了某种方法并发现不起作用,那么查看该尝试和错误可能会有所帮助。
配置规范:
#element * REL_2010.2.2.006
element * .../pgh_rel_4.0.0_dot_rel/{created_by(pp50773)&&lbtype(REL_2010.2.2.006)}
# first stop rule
element -directory * .../pgh_rel_4.0.0_dot_rel/{lbtype(REL_2010.2.2.006)}
# second stop rule
element -directory * main/LATEST
此配置规范不会获取我的更改 - 它会获取空目录。同样重要的是要注意,当我对实际文件进行更改时,另一个人负责每周应用标签。因此,如果标签上有谁的名字,那就行不通。
如果我删除created_by约束,它可以很好地列出标签的所有更改,但我只需要给定用户该标签中的文件。
沃尔特
I'd like to create a dynamic view that only shows the files a user created/modified for a particular label.
Right now, I am listing all of the files in the label and comparing that with the previous label.
If I have to use cleartool to find the files, that is fine with me. I'd like the process to be more automated than it currently is.
Another option too is, can I simply see the diffs for a particular user? That way, I am more likely to understand the file's history. If a developer had attempted something one way and found that didn't work, it might be helpful to see that trial and error.
config spec:
#element * REL_2010.2.2.006
element * .../pgh_rel_4.0.0_dot_rel/{created_by(pp50773)&&lbtype(REL_2010.2.2.006)}
# first stop rule
element -directory * .../pgh_rel_4.0.0_dot_rel/{lbtype(REL_2010.2.2.006)}
# second stop rule
element -directory * main/LATEST
This config spec doesn't fetch my changes - It fetches empty directories. It is also important to note that while I made the changes to the actual file, another guy is responsible for applying the label weekly. So, if it goes by whose name is on the label, that won't work.
If I remove the created_by constraint, it works fine listing all of the changes for the label, but I want only files in that label for a given user.
Walter
发布评论
评论(1)
根据 版本选择器规则,你可以这样做,但我建议:
一个视图的配置规范类似于:
当您正确配置了两个视图时,您可以将它们的内容与 像 WinMerge 这样的工具。
According to the version selector rules, you can do that, but I would recommend:
The config spec for one of those view would be something like:
When you have two views correctly configured, you can compare their content with a tool like WinMerge.