Unlocking a checked out file in Source Control
Greetings,
I'm trying to unlock a file which is checked out by another user ( who happens to be out of the office), if i try to do an 'unlock' from the source control explorer i get the message:The item $/Myproj/MyFile.cs is locked for checkout by THEDOMAIN\theuser in workspace WORKSPACENAME;THEDOMAIN\theuser
I'm a member of the domain admins so i've got unlockother permissions...
Any insight would be much appreciated!
Actually, when you specify commands via the Source Control Explorer window, the system tries to run them on the current workspace selected in the workspace dropdown. The file is not actually locked in your workspace, hence you're getting the error message.
You can do this through the command line client (start -> all programs -> visual studio 2005 beta 2 -> visual studio tools -> visual studio 2005 command prompt). You have to specify the other user's workspace using the /workspace option.
h lock /lock:none $/<full path to the file>/filename /workspace:usersworkspacename
For example, say that Joe has a file locked in workspace "JoesWorkspace"
h lock /lock:none $/TeamProject/WidgetProject/Widgets/main.cs /workspace:JoesWorkspace