19 December, 2012

Clean out those workspaces

Having moved my Source Control between multiple workstations over time and still having it with my can sometimes present problems with “workspace already exists” and other problems in that category. And that even you can’t see these workspaces mentioned (on your new workstation!).

To clear out workspaces, you first need to gain an overview of what’s currently registered in the database:

  1. Open a VS Dev Command Prompt on the TFS-server
  2. Navigate to a folder on disk where you want to see the current workspaces
  3. type
    1. tf workspaces /owner:*
    2. (alternatively the verbose version): tf workspaces /server: ServerName /owner:*

This will give you a list of currently registered workspaces (good and bad ones).

To delete a workspace, you type this:

  1. tf workspace /delete workspaceName;owner
  2. (alternatively the verbose version): tf workspace /server: ServerName /delete workspaceName;owner

No comments:

iPhone/XCode - not all cases are equal!

This bit me! Having made some changes to an iPhone application (Obj-C); everything worked fine in the simulator. But, when deploying the s...