Поделиться через


How to: View and Manage All Pending Changes in Your Workspace

This topic describes how to view and manage pending changes using the Pending Changes window. For more information, see Using the Check In and Pending Changes Windows.

For information about how to work with pending changes in Source Control Explorer and Solution Explorer, see How to: Identify Source Control Item Status in Source Control Explorer and How to: Identify Source Control Item Status in Solution Explorer.

The following procedures demonstrate how to manage pending changes using the Pending Changes window that includes how to undo, remove, and compare pending changes.

Required Permissions

To perform these procedures, you must have the Read permission set to Allow. For more information, see Team Foundation Server Permissions.

To view pending changes in your workspace from the Pending Changes window

  1. In Solution Explorer, right-click the solution, project, or file for which you want to view pending changes, and select View Pending Changes.

    Note

    The source-controlled file must be checked out for edit before the View Pending Changes option is available.

    The Pending Changes window is displayed.

  2. In the Pending Changes window, view the status of pending changes under the Change column. The change status can be:

    • edit

    • add

    • lock

    • delete

To undo pending changes

  1. In Solution Explorer, right-click the solution, project, or file for which you want to view pending changes and select View Pending Changes.

    The Pending Changes window is displayed.

    Note

    The source-controlled file must be checked out for edit before the View Pending Changes option is available.

  2. In the Pending Changes window, right-click the item that you want to undo changes for and then click Undo Pending Changes.

  3. In the Undo Pending Changes dialog box, make sure that the item you want to undo the changes for is selected and then click Undo Changes.

  4. In the Confirm Undo Checkout dialog box, click Yes to verify that you want to undo the checkout and lose any changes.

    Tip

    To undo all changes that were made to your project after the last check out, right-click the project in Solution Explorer and then click Undo Pending Change. All files that have pending changes in the project are selected. Follow steps 3 and 4 earlier to complete the undo process.

To compare files in a pending change to a different version

  1. From Solution Explorer, right-click the solution, project, or file that for which you want to view pending changes, and select View Pending Changes.

    The Pending Changes window is displayed.

    Note

    The source-controlled file must be checked out for edit before the View Pending Changes option is available.

  2. In the Pending Changes window, right-click the item that you want to compare to another version, click Compare and then click With Unmodified Version, With Workspace Version or With Latest Version.

  3. If you are prompted with the Source Control dialog box, click Save and continue to save your changes to the disk before you continue with the compare.

    The two files are presented with their differences highlighted, or if the files are the same, a dialog box appears that shows that the files are identical.

See Also

Tasks

How to: View Pending Changes in Other Workspaces
How to: Identify Source Control Item Status in Solution Explorer
How to: Shelve and Unshelve Pending Changes

Concepts

Using the Check In and Pending Changes Windows
Using Source Control Explorer

Other Resources

Working with Source Control Files and Folders