As promised in my previous post, in this post I will tell a little bit more about workspaces.
When creating a new workspace (and I explained why you need to do that in my previous post) or editing an existing one, the dialog pops up. In 2012 it shows a small one. Press the “Advanced” Button to expand.
I like to walk through the different fields that are shown here and what they mean and how to use them.
The name of the workspace. This is unique per User and Computer. It is wise to have some kind of naming convention for workspaces that you use for all users and projects. I usually use WS_PROJECTNAME_USERNAME_COMPUTERNAME.
I do this because I want to know where I am looking at without having to dive into details. So when I view all my workspaces (also remote workspaces) I can directly see on which computer this is. I put my username in, because for the TFS administrator (and that is usually me) it is also good to see to whom the workspace belongs.
Read-only. On which TFS Project collection is this workspace created
To whom belongs this workspace. As administrator you can workspaces for others as well
Read-only. On which computer is this workspace created
Server or Local. I explained this in my previous post
This setting is new in TFS 2012. The choice is Current (the default) or Check-in.
Be careful with this one. This setting sets the modified date of a file. If the setting is Current, on check-in the file keeps its modify date,
When you choose Check-in, the file modify time is set to check-in time. So if you check-in files that you changed 3 days ago, the file time in TFS is now !
This was already there in TFS 2010. You have 3 options
- Private (default) – The workspace that you create is only accessible by yourself
- Public – The workspace can be accessed by other people as well. This is useful when you work on a shared computer where the files you need to edit are bound to a specific location (E.g. SharePoint or Specific Web Services). However, only use when really needed. You can mess up files of other people
- Public (Limited) – The same as Public only others cannot check-in files. This is the read-only public workspace
Hope this helps!