Reputation: 3813
Is there a way to make a changelist restricted if any of the files in it match a certain pattern? I'd like to use this to protect private internal projects from external contractors.
I know that the contractors won't be able to see the files if they don't have access in the protections, but I'd rather not have to rely on everyone sanitizing their checkin comments.
Upvotes: 0
Views: 289
Reputation: 3289
It's been a while since I did this, but as I recall the trick is to set up a very simple trigger that forces all changelists to be restricted. Assuming you are already using protections, your users will then see only the changelists whose files they can see; all other changelists (and their descriptions) will be hidden from them.
Upvotes: 2