开发者

Code Review - Clearcase - How to get a list of files a user modified since another label?

开发者 https://www.devze.com 2023-01-09 15:15 出处:网络
I\'d like to create a dynamic view that only shows the files a user created/modified for a particular label.

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_2开发者_开发问答010.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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号