如何锁定过时的TeamProjects [英] How to Lock obsolete TeamProjects

查看:88
本文介绍了如何锁定过时的TeamProjects的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为维护的一部分,我将通过在Source Control Explorer($/TeamProject)中右键单击每个根目录并选择"Lock .."来锁定几个现已过时的TeamProject. >完成后,我尝试提交这些更改,但以下消息拒绝了该更改:

As part of a maintenance, I was about to Lock several now-obsolete TeamProjects, by right-clicking on each one's root in Source Control Explorer ($/TeamProject) and selecting "Lock..".

Once I was done, I tried to commit these changes, which was denied with the following message:

通过搜索,我碰到了以下语句,它是

By searching around I bumped into the following statement, made as part of this discussion:

应用锁,以便放置锁的用户可以 签入/签出文件,但只有在释放锁定后,其他人才能这样做. 因此,作为更有效的测试,您将需要其他用户尝试 检入锁定的文件-即不是您,因为您已锁定了该文件.

Locks are applied such that the user who places the lock can checkin/checkout files but noone else can until the lock is released. So as a more valid test you will need another user to attempt a check-in of a locked file - ie not you because you put the lock on.

如果这句话成立,那么一起使用'Lock'并不是我本来应该做的.

我真正需要的是关闭较旧的TeamProjects,以便不再进行检出.我该怎么做?

(我想我可以在我的变更集中包含一个杂项代码更改,但是只有在没有其他可用选项的情况下,我才会这样做)

If this statement stands, using 'Lock' was all together not what I should have gone for.

What I actually need is to close down older TeamProjects so that no checkouts can occur anymore. How do I do that?

(I suppose I could include in my changeset a misc code change, but I 'd go for something like this only if there were no other options available)

推荐答案

据我了解,选择锁定"可让您单独检出文件.但是,这样做会在未决的更改窗口中显示项目.我想这不是您想要的.

As I understand selecting Lock allows you to check out the file in isolation. But doing so will show the project in pending changes window. And i guess this is not what you want.

可以从TFS管理控制台停止团队项目集合,但是该功能不适用于单个团队项目,您可以在此处对该功能进行投票... http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2485699-使它有可能禁用团队项目

Team Project Collections can be stopped from the TFS Administration console, however this functionality is not available for individual team Projects, you can vote for this feature here ... http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2485699-make-it-possible-to-disable-team-project

您可以右键单击团队项目并选择安全性,将用户的权限更改为只读,以便他们没有签入权限.

You could right click the team project and select security, change the permissions for the users to read only so they have no check in permissions.

HTH

这篇关于如何锁定过时的TeamProjects的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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