Viewing the change history of a file
The History view of a file lists all the change
sets, one per line, that include the file. You can open any of these change
sets in the Change Explorer view to see more detail about
individual items in the change set.
Every file in a repository appears in one or more change sets.
The change history of a file can be expressed an ordered list of change sets
in which it appears.
To view the change history of a file:
- Select the file whose history you want to view. There
are several ways to do this:
- In the Eclipse Navigator view (or
any Eclipse view that supports Team operations), right-click the file
and click .
- In the Pending Changes view, right-click a component
or workspace that includes the file and click Show Repository Files to
open a Repository Files view listing all the projects
in the selected component or workspace. Right-click a file in the project
and click Show History.
- Open a change set in the Change Explorer view,
then right-click a file in the change set and click Show History.
Change sets that include the file are listed in descending order, with
the oldest change set at the bottom of the list. If a version of the file
is loaded into your Eclipse workspace, the change set that includes it is
displayed in bold. Move your mouse pointer over a change set to see more information
about it. If the file has been merged, a graphical merge history is displayed
in the Merges column.
- Right-click a change set and choose an operation to initiate on
it. Supported operations include:
- Open in Change Explorer opens the change set
in the change explorer.
- Open File opens the version of the file that
is in the selected change set.
- Annotate opens an annotated view of the version
of the file that is in the selected change set. For more information, see Viewing annotations.
- Locate Change Set opens the Locate
Change Set window so you can find other instances of this change
set in the repository. For more information, see Searching for a change set in another workspace or stream.
- Load loads the version of the file in the selected
change set into your Eclipse workspace. If the file is already in your Eclipse
workspace, you are prompted to confirm that it can be overwritten.
If you select multiple change sets, some operations are disabled.