TFS 分支权限
我们具有以下代码结构:
$
|-Core
| |- Project1
| |-CoreFile.cs
| |- Project2
| |- ...
|
|-NewProject
|- Project1
| |-CoreFile.cs
| |-NewFile.cs
|- Project2
|- ...
我们已将核心分支到 Project 作为起点,并将文件添加到 NewProject 解决方案的项目中。
我们现在需要做的是对核心代码设置权限,以便我们可以锁定它并阻止人们对其进行更改。我们发现这很困难,因为 TFS 不能很好地处理这种情况。
有没有人有任何关于最好地实现这一目标的建议?
We have the following code structure:
$
|-Core
| |- Project1
| |-CoreFile.cs
| |- Project2
| |- ...
|
|-NewProject
|- Project1
| |-CoreFile.cs
| |-NewFile.cs
|- Project2
|- ...
We have branched core into Project as a starting point and are adding files into NewProject solution's projects.
What we need to do now is set permissions on the Core code so that we can lock it down and stop people making changes to it. We are finding this difficult as TFS does not handle this situation very well.
Has anyone any suggestions as to best achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TFS 确实可以处理这个问题,我目前正在与您类似的场景中使用它。有一个名为“签入”的权限,您可以在用户或组级别将其设置为“允许”或“拒绝”。为此,
注意,为了能够更改权限,我相信您需要成为管理员在服务器或项目级别。另请注意,我使用的是 TFS 2005。
TFS does handle this and I am currently utilizing it in a scenario similar to yours. There is a permission called 'Check In' that you can set it 'Allow' or 'Deny' at user or group level. To be able to do this,
Note that in order to be able to change permissions, I believe you need to be an admin on server or project level. Also note that I am using TFS 2005.
作为一种替代方法,您可以让一个帐户锁定文件以进行签出和签入,然后保持锁定。右键单击,锁定 NewProject 文件夹。
As an alternative, you can have one account lock the files for checkout and checkin and just hold the lock. Right-click, lock on the NewProject folder.