Is there a way to make a branch invisible in TFS?

醉酒当歌 提交于 2019-12-25 04:14:12

问题


I know there is a way to set permissions for Branches so specific people can't read/check-out/check-in files.

But, is there a way to completely hide those folders/branches so these people can't even see them?

Btw, we're using TFS2010.


回答1:


Let's say that I have $/Proj/Branch1, and I deny read permission for $/Proj/Branch1 to user A. This would make $/Proj/Branch1 and everything underneath it invisible to user A. This is because by default items don't have any permissions on them, and just inherit from their parents.

If this is your scenario then there is no more work to do other than denying Read permission to the user in question.

The exception to the rule is when there is some child item of $/Proj/Branch1 to which user A has an allow. Let's call this item $/Proj/Branch1/Child/Several/Folders/Down.txt. Because user A is allowed to read this item, he or she has to be able to see all the parent folders, all the way up to $/. In this scenario the parent folders are visible, but not their contents (other than that one file Down.txt).

So if you want the path to truly disappear for a user, they have to lack read permission on the item in question and all children of that item. As I said, in the typical case, all you have to do is set a Deny for Read permission on the root item and it will propagate all the way down.

Thanks




回答2:


P.Kelly's way work unless you broke the permission inheritance. If you broke it you'll have to repeat the deny rule at each node you broke it.

You can delete the branch (and undelete it if needed), but it will be for everybody. The feature you're asking is simply not implemented in TFS (and I too miss it), so your solution will be good only for some cases.



来源:https://stackoverflow.com/questions/10145659/is-there-a-way-to-make-a-branch-invisible-in-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!