开发者

How to know if a file is checked out by someone else in TFS 2010?

开发者 https://www.devze.com 2023-01-27 01:40 出处:网络
I want to make sure no one else is checking out the source codes so that I can make a released installer. So, I want to see 1) the #1 list of users who are checking out a specific file and 2) the #2 l

I want to make sure no one else is checking out the source codes so that I can make a released installer. So, I want to see 1) the #1 list of users who are checking out a specific file and 2) the #2 list of all checked out files ; but I don't know how to. Please help if you do!

Edit

A colleague show me that we can see the list #1 on per user basic by: Source Control - Team Me开发者_运维知识库mbers - Right click a user - Show Pending Changes - Done. This is great but not perfect. Would be lovely to see the whole list of every member.

One more step to follow to see the whole list Modify Query (on the left top corner) and select Display all checked out.


Open a Visual Studio 2010 Command Prompt (Start->All Programs->MS Visual Studio 2010->VS Tools). Type:

tf status /user:*

This will give you all pending changes for all users in all workspaces.

For a specific file, just type:

tf status /user:* c:\myfile.txt

More info here.


A colleague show me that we can see the list #1 on per user basic by: Source Control - Team Members - Right click a user - Show Pending Changes - Done. This is great but not perfect. Would be lovely to see the whole list of every member.

One more step to follow to see the whole list Modify Query (on the left top corner) and select Display all checked out.


I think Team Foundation Sidekicks (http://www.attrice.info/cm/tfs/) is much easier then using the command prompt.


In Visual Studio, look in the Source Control Explorer (View menu > Other Windows > Source Control Explorer). That will show you who has each file checked out and if they have an exclusive lock on the file.


#1 Solution

  1. Open Source Control Explorer.
  2. In this explorer browse to the file and select it.
  3. File > Source Control > Find in Source Control > Status...
  4. Don't change anything in this opened window and click Find

#2 Solution

  1. View > Other Windows > Pending Changes


Goto Views-->Other windows -->pending changes

0

精彩评论

暂无评论...
验证码 换一张
取 消