代码审查 - Clearcase - 如何获取用户自另一个标签以来修改的文件列表?

发布于 2024-09-12 07:54:44 字数 691 浏览 9 评论 0 原文

我想创建一个动态视图,仅显示用户为特定标签创建/修改的文件。

现在,我列出了标签中的所有文件,并将其与之前的标签进行比较。

如果我必须使用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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往日情怀 2024-09-19 07:54:44

根据 版本选择器规则,你可以这样做,但我建议:

  • 2个动态视图(易于设置和刷新,因为它们的内容不会下载到您的硬盘驱动器,但通过网络访问)
    • 一对一标签
    • 一个为另一个
  • 不要忘记为目录添加停止规则(如果目录不是由您的用户创建的,它们将不会被选择,这意味着您的视图将无法选择 <其中

一个视图的配置规范类似于:

element * .../MyBranch/{created_by(myuser)&&lbtype(MY_LABEL)}
# first stop rule
element -directory * .../MyBranch/LATEST
# second stop rule
element -directory * main/LATEST

当您正确配置了两个视图时,您可以将它们的内容与 像 WinMerge 这样的工具

According to the version selector rules, you can do that, but I would recommend:

  • 2 dynamic views (easy to setup and refresh, since their content is not downloaded on your hard drive, but accessed through the network)
    • one one for one label
    • one for the other
  • to not forget to add stop rules for directories (if directories are not created by your user, they won't be selected, meaning your view won't be able to select any version within it.

The config spec for one of those view would be something like:

element * .../MyBranch/{created_by(myuser)&&lbtype(MY_LABEL)}
# first stop rule
element -directory * .../MyBranch/LATEST
# second stop rule
element -directory * main/LATEST

When you have two views correctly configured, you can compare their content with a tool like WinMerge.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文