How to know if a file is checked out by someone else in TFS 2010?
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
- Open
Source Control Explorer
. - In this explorer browse to the file and select it.
File > Source Control > Find in Source Control > Status...
- Don't change anything in this opened window and click
Find
#2 Solution
View > Other Windows > Pending Changes
Goto Views-->Other windows -->pending changes
精彩评论