Working with Workspaces in TFS 2010 – Part 3

Hello my friends,

Today I will close “Working with Workspaces in TFS Series” in how to use multiple workspaces to work on multiple branches:

You typically create multiple workspaces to work on two versions of your software at the same time. For example, you may work on an update to version 2.0 as you develop version 3.0. By creating separate workspaces, you isolate the files and help make sure that you are always working on the correct version.

To create multiple workspaces, you create each one by following the procedure in Create a workspace manually earlier in this topic.

This figure illustrates that a local user has created a workspace for the Feature Team A branch, where the new version is under development, and another workspace for the Version2 branch, which requires an update.

When you create separate workspaces for each branch, you can display the files in each branch in Source Control Explorer. To display the files that are mapped in each workspace, open the Workspace list, and then click the name of a workspace. The list of folders and files changes so that items in the specified workspace are available, but those in other workspaces are not.

For example, the following figure shows what folders and files are in the TeamA workspace. The Folders pane shows that the server folder that is mapped in the TeamA workspace is enabled and the Version2 server folder, which is not mapped in that workspace, is disabled.

– Team A is the current workspace.

– Only the folders or branches that are mapped in the Team A workspace are available.

If you use separate workspaces, you can also easily show which changes you made in each branch separately in the Pending Changes window. To open the window, open Solution Explorer, right-click your project, and then click View Pending Changes. In the Pending Changes window, open the Workspace list, and then click each workspace to display the pending changes for that workspace.

Done🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s