This project is read-only.

Use Shelvesets to Back Up or Share Pending Changes

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

Use shelvesets to back up files that contain pending changes you are not yet ready to check in. You can also use shelvesets to share code for code review, or if you are passing off a development task to another developer. By using shelvesets, you can upload your pending changes to the server without checking in partially completed work that could potentially lead to build instability.

To shelve a set of pending changes, first view the changes by right-clicking your solution in Solution Explorer and then clicking View Pending Changes. Select the files you want to shelve and then click Shelve. Type a shelveset name and a comment that identifies the purpose of the shelveset, and then click Shelve.

To retrieve a shelveset
  1. On the File menu, point to Source Control and then click Unshelve.
  2. In the Owner name text box, type the shelveset creator’s name (for example, Contoso\JimB or simply JimB) and then click Find.
  3. In the Results pane, select the shelveset you want to unshelve into your workspace, and then click Details.
  4. If you want to delete the shelveset as you retrieve it from the TFS source control server, clear the Preserve shelveset on server option. Team Foundation Server restores each shelved revision into the destination workspace as a pending change as long as the revision does not conflict with a change that is already pending in your workspace.
  5. Optionally, you can clear the Restore work items and check-in notes option if you do not want to have the work items and check-in notes associated with the shelveset restored. When the Details dialog box appears, select the shelveset or shelveset items you want to unshelve into your workspace, and then click Unshelve.

Additional Resources

Last edited Jul 26, 2007 at 10:29 AM by prashantbansode, version 5


No comments yet.