There are a couple way to do this; first inside of VS:
View the Source Control Explorer (View | Other Windows | Version Control Explorer); then you should be able to browse to the location in the repository you are interested in. This should list the user with a pending change of lock. If there are multiple pending changes then you could do the propery of that item.
Or, you can use the command line: 1. In a VS Command Prompt, cd into folder (workspace/working folder) where the file in question resides. 2. Issue the command: "h.exe /status /user:* filename"
Sample output from the command line: File name Change User Local path --------- ------ -------------------- ------------------------------------- $/VersionControlAutomation_Basic/WS1/Rename/Sub1 ABC * edit DOMAIN\user1 F:\\WS1\Rename\Sub1\ABC ABC.txt ! edit DOMAIN\user1 F:\\WS1\Rename\Sub1\ABC.txt
From the example above you can see that user1 has one file checkout with a checkin lock and another file checkout with a checkout lock.
Checkin Lock: This lock prohibits users from checking in changes on this file while the lock exists.
Checkout Lock: This lock prohibits users from checking out or in changes on this file.
File is Exclusilvely Checked out by another user -----HELP
File is Exclusilvely Checked out by another user -----HELP
vitriolv
View the Source Control Explorer (View | Other Windows | Version Control Explorer); then you should be able to browse to the location in the repository you are interested in. This should list the user with a pending change of lock. If there are multiple pending changes then you could do the propery of that item.
Or, you can use the command line:
1. In a VS Command Prompt, cd into folder (workspace/working folder) where the file in question resides.
2. Issue the command: "h.exe /status /user:* filename"
Sample output from the command line:
File name Change User Local path
--------- ------ -------------------- -------------------------------------
$/VersionControlAutomation_Basic/WS1/Rename/Sub1
ABC * edit DOMAIN\user1 F:\\WS1\Rename\Sub1\ABC
ABC.txt ! edit DOMAIN\user1 F:\\WS1\Rename\Sub1\ABC.txt
From the example above you can see that user1 has one file checkout with a checkin lock and another file checkout with a checkout lock.
Checkin Lock: This lock prohibits users from checking in changes on this file while the lock exists.
Checkout Lock: This lock prohibits users from checking out or in changes on this file.