Monday, January 30, 2006

Unlocking a file locked out by another user in VSTS ...

What will you do if you got stuck for a deadline and the file you want to work on is currently locked out by another user??

You can rush around looking for that someone and your system administrator to help you ... BUT also you can just do it yourself through the following ...
h lock /lock:none $/YourTeamProject/YourProject/yourfile.cs /workspace:hisworkspace

and here you go ... Start your work you are back on track ...

If there's more than one workspace with the same shortname, you can qualify it using domain\username i.e. /workspace:hisworkspace;YourDomain\HisUsername.

Currently this can't be done through GUI as the Source Control Explorer Unlocks works against the selected workspace.

No comments: