views:

253

answers:

1

Hi all,

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

A: 

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.

VonC
@VonC I updated my question to include my updated config spec, it dies on the created_by clause.
@Walter: I was seeing that while you were typing your comment;). By "die" you mean "empty directories", not "error message", right?
VonC
@VonC correct. It lets me use that config spec and I see directories, but they're all empty.