# History View

The History View shows the history of changes of the relevant file.

You can adjust the size of the Diff Viewer panes by dragging the divider between them. Click the pointing up black arrow on the left of the divider once to expand the lower pane, click the same arrow again to collapse the upper pane. Click the pointing down black arrow on the left of the divider once to expand the upper pane, click the same arrow again to collapse the lower pane.

The History View window contains the following elements:

Element | Description
--- | ---
Toolbar | The history toolbar is at the top of the History View window. You can toggle the display of the toolbar by choosing View > Show Editor Toolbar from the main menu.
Next | Highlights the next difference found between versions.
Previous | Highlights the previous difference found between versions.
Refresh | Refreshes the contents of the view, fetching the latest history information for the file(s).
Filter (drop-down list) | Displays only those revisions that match the criteria you selected (All, VCS, Local, User, or Message).
Compare Mode (drop-down list) | Displays differences between the selected file version and its previous or current version.
Options | Displays the Versioning tab of the Options dialog box to configure history and VCS-specific parameters in the IDE.
Search Git/Mercurial/Subversion History (shortcut link) | Displays the Show History tab for browsing and searching information in VCS repository files.
Diff Viewer | The Diff Viewer is divided into two panes:
Upper pane | Contains a table that enables you to view a summary of a file's evolution by the date and time stamps. A stamp is applied whenever a file is saved in the IDE or committed to a VCS repository. Multiple selection of any two revisions in the table displays them compared in the Diff Viewer in the lower pane. You can right-click a multiple selection of revisions to invoke a context menu. The actions in the menu vary depending on the specific system (the IDE's History, Git, Mercury, or Subversion). The table features the following columns and components:
Date | Displays the creation date and time of the revision in the history. The file versions are listed according to the date, with the most current version displayed on top. They can be sorted by clicking the Date column header.
Revision | Displays the local label for a file tracked in the IDE local history or a revision identifier for a version-controlled file. The revisions can be sorted by clicking the Revision column header.
User | Displays the name of the person who created and authored the version. The users can be sorted by clicking the User column header.
Message | Lists any message associated with the file. The messages can be sorted by clicking the Message column header. To add a message to a specific file version, click on the version row beneath the Message column and type in a message directly. You can call commands from the table directly on versions using the right-click menu:
Revert from History | Reverts your current file to the selected version. Applicable to files tracked in the IDE local history.
Delete from History | Deletes the selected version from the Local History repository. Applicable to files tracked in the IDE local history.
View | Displays the selected revision in the source editor in a separate tab. Applicable to version-controlled files.
Show Annotations | Displays annotated source of the selected revision in a separate tab. Applicable to version-controlled files.
Show only rows where | Filters versions in accordance with the filter specified (Revision/User/Message ==, Revision/User/Message <>, Revision/User/Message >, Revision/User/Message <, Revision/User/Message >=, Revision/User/Message <=, No Filter). Available in the Revision, User, and Message columns.
Load next 30 days | Enables you to find out if there is any revision available beyond the specified time scope that ranges from the date specified in the same row on the right till the current date. Unavailable if either Always Load All is selected in the right-click menu or the Load all revisions option is selected in the History Versioing System in the Versioning tab of the Miscellaneous category in the Options window. You can use the right-click menu to call the following commands from the cells of the row:
Load Next 30 days | Retrieves the revisions made to the IDE's history and a versioning control system for the period of 30 days counted from the most recent loaded date.
Load All | Retrieves all revisions made to the IDE's history and a versioning control system from the beginning.
Always Load All | When selected the IDE always retrieves all the revisions available in both the IDE's history and a versioning control system into the Upper pane.
Show only rows where | Filters versions in accordance with the filter specified (Revision/User/Message ==, Revision/User/Message <>, Revision/User/Message >, Revision/User/Message <, Revision/User/Message >=, Revision/User/Message <=, No Filter). Available in the Revision, User, and Message columns.
Lower pane | Enables you to compare revisions of a file in the following two modes:
Graphical | Displays the differences between the files being compared side by side using color coding. The Diff Viewer provides the following UI components:
Blue | Indicates lines that have been changed since the earlier revision.
Green | Indicates lines that have been added since the earlier revision.
Red | Indicates lines that have been removed since the earlier revision.
Replace | Inserts the highlighted text from the previous revision into the current revision.
Move All | Reverts the file's current version to the state of the selected previous version.
Remove | Removes the highlighted text from the current version so that it mirrors the previous version.
Textual | Displays the collection of differences between the compared files in text.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.