Just found a glitch in the unmap support for tf workfold (and found out it has already been reported).
First what I tried to do:
- move
D:\develop.TFS02
intoD:\develop\CodePlex\TFS02
usingtf map
(which BTW allows you to do in place branch switching). - unmap
D:\develop.TFS02\besharp
from TFS
First a few things; the first one succeeded (as it implicitly uses the /map command), the last ones failed because /unmap is ambivalent on the /collection parameter: on the one hand it wants to do without, but when it discovers it cannot do without, it wrongly indicates it requires it.
D:\develop.TFS02\besharp>tf workfold /collection:https://tfs.codeplex.com/tfs/tfs02 /workspace:%COMPUTERNAME% $/ D:\develop\CodePlex\TFS02 D:\develop.TFS02\besharp>tf workfold /collection:https://tfs.codeplex.com/tfs/tfs02 /workspace:%COMPUTERNAME% /unmap $BeSharp The option collection is not allowed. D:\develop.TFS02\besharp>tf workfold /unmap /collection:https://tfs.codeplex.com/tfs/tfs02 /workspace:%COMPUTERNAME% D:\develop.TFS02\besharp The option collection is not allowed. D:\develop.TFS02\besharp>tf workfold /unmap D:\develop.TFS02\besharp Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'. D:\develop.TFS02\besharp>tf workfold /unmap /workspace:%COMPUTERNAME% D:\develop.TFS02\besharp Multiple workspaces exist with the name T61PJWP. Please specify the Team Foundation Server or qualify the name with the owner.
Workaround
The workaround is to
- start Visual Studio,
- unmap $/,
- recursively map $/ to D:\develop\CodePlex\TFS02,
- perform a get latest.
–jeroen
Via:
Filed under: .NET, Development, Software Development, Source Code Management, TFS (Team Foundation System), Visual Studio 2010, Visual Studio and tools
