有没有办法使分支在TFS中不可见? [英] Is there a way to make a branch invisible in TFS?

查看:70
本文介绍了有没有办法使分支在TFS中不可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一种方法可以设置分支的权限,这样特定的人就无法读取/签出/签入文件。

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,我们正在使用TFS2010。

Btw, we're using TFS2010.

推荐答案

比方说,我拥有$ / Proj / Branch1,并且拒绝向用户A读取$ / Proj / Branch1的权限。这将使$ / Proj / Branch1及其下的所有内容对于用户A是不可见的。这是因为默认情况下,项目对它们没有任何权限,而只是从其父项继承。

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.

该规则的例外是,当存在$的子项时,该规则便例外了。用户A允许的/ Proj / Branch1。我们将此项目称为$ / Proj / Branch1 / Child / Several / Folders / Down.txt。因为允许用户A读取此项目,所以他或她必须能够看到所有父文件夹,一直到$ /。在这种情况下,父文件夹是可见的,但看不到它们的内容(那个文件Down.txt除外)。

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.

谢谢

这篇关于有没有办法使分支在TFS中不可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆