How to Lock obsolete TeamProjects

情到浓时终转凉″ 提交于 2019-12-07 08:28:37

问题


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.

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)


回答1:


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.

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



来源:https://stackoverflow.com/questions/8698947/how-to-lock-obsolete-teamprojects

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