26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

application to ensure that it compiles. Shelve the source using Source Control Explorer.<br />

The team member to whom you have handed off the code then needs to unshelve the<br />

code.<br />

Shelving is useful when you have work in progress that is to be completed by another<br />

team member; in this case, you can shelve your changes to make a handoff easier. By<br />

synchronizing the latest code, you get an opportunity to incorporate changes to source<br />

files that have been made outside of your workspace.<br />

To shelve folders and files from Source Control Explorer<br />

1. In Source Control Explorer, right-click and then select Shelve Pending Changes.<br />

2. In the Shelve - Source Files dialog box, in the Shelveset name box, type the<br />

shelveset name; for example, shelvetest.<br />

3. In the Comment box, type Testing my shelveset and then click Shelve.<br />

The files and folders are copied to the source control server and are available for other<br />

team members to unshelve.<br />

When the other team member unshelve a shelveset, TFS restores each shelved revision<br />

into the destination workspace as a pending change, as long as the revision does not<br />

conflict <strong>with</strong> a change that is already pending in the workspace.<br />

To unshelve a set of pending changes<br />

1. In <strong>Visual</strong> <strong>Studio</strong> 2005 <strong>Team</strong> System, click File, point to Source Control, and then<br />

click Unshelve.<br />

2. In the Owner name box, type the shelveset creator’s name (for example,<br />

ADVENTUREWORKS\JuanGo or simply juango) and then click Find.<br />

3. In the Results pane, select the shelveset you want to unshelve into your workspace,<br />

and then click Details.<br />

4. If you want to delete the shelveset from the TFS source control server, clear the<br />

Preserve shelveset on server option.<br />

5. (Optional) Clear the Restore work items and check-in notes option if you do not<br />

want to have the work items and check-in notes associated <strong>with</strong> the shelveset<br />

restored.<br />

6. When the Details dialog box appears, select the shelveset or shelveset items you want<br />

to unshelve into your workspace, and then click Unshelve.<br />

Additional Resources<br />

• For more information, see “How to: Shelve and Unshelve Pending Changes” at<br />

http://msdn2.microsoft.com/en-us/library/ms181404(VS.80).aspx

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!