Compartilhar via


Undo or view the list of pending changes

At any time, you can view the list of pending changes for a solution under source control, or you can undo any file changes that you have made in order to restore the versions of the files that were last checked in to the Team Foundation server.

To undo pending changes

  1. In the Projects panel, right-click one of the following items and then click Undo Pending Changes:

    • The solution.

    • A project with pending changes.

    • A file that has been checked out.

    • A file that has been added to your local project or solution but not yet checked in to the Microsoft Team Foundation server.

  2. In the Undo Pending Changes dialog box, make sure the files whose pending changes you want to undo have a check mark next to them. Though all files awaiting check-in are listed, check marks appear only next to the item you right-clicked and any sub-items it has. For example, if you right-clicked the solution, check marks will appear next to all the files in the solution with pending changes. If you right-clicked a XAML file, check marks will appear next to the XAML file and its corresponding code-behind file will appear (if both have pending changes).

  3. Click Undo Pending Changes.

    The files that were selected in the list are replaced by the copies that are on the Team Foundation server. If any of those files were open on the artboard, Microsoft Expression Blend displays a message asking you to reload the file, because the version on the artboard is now out of date. If a file was waiting to be added when you undid the pending change, it will be removed from the project, and the reference in the project file (.csproj, .vbproj) will be removed.

To view the list of pending changes

This is useful if you want to see the entire list of file changes that are waiting to be checked in or undone, including files that were deleted and that no longer appear in the Projects panel.

In the Projects panel, right-click the solution, a project with pending changes, or a file that has been checked out or added, and then do one of the following:

  • Click Undo Pending Changes.

    The lists of files waiting to be checked in is displayed, with check marks next to those whose changes would be undone if you clicked Undo Pending Changes.

  • Click Check In.

    In the Check In dialog box, make sure that Source Files is selected on the left side.

    The list of files waiting to be checked in is displayed, with check marks next to those that would be copied to the Team Foundation server if you clicked Check In.

See also

Tasks

View or compare the changes made to files

Check files in and out

Refresh the status of files under source control