RubyMine 2016.3 Help

Viewing Changes History for a File or Selection

RubyMine allows you to review changes made to files, or even fragments of source code. The Show History and the Show History for Selection commands are available from the main VCS menu and from the context menu of files.

The change history for a file is displayed in the dedicated History tab of the Version Control tool window.

The change history for a selection of code is displayed in a separate window, in the form of the differences viewer.

In this topic:

Viewing the History of a File

  1. Do one of the following:
    • Open the file in the editor. Then on the main VCS menu or on the context menu of the editor tab, choose <directory VCS> | Show History.
    • In the Project tool window, select the file in question and choose <directory VCS> | Show History on the context menu of the file.
    The History tab for this file appears in the Version Control tool window, the name of the file is shown on the title bar of the tab.

    The revision that currently exists in your working copy is highlighted in bold font.

  2. Click the columns to filter the list of changes you have made to the selected file.
  3. Click the relevant buttons on the toolbar to compare with local version, get the selected version from VCS, annotate a file, refresh the revisions list, and show the list as a tree.
  4. To view the other files updated in a revision, select the revision in question and choose Show All Affected Files on the context menu. The Paths Affected in Revision dialog box opens showing a list of all the files that were modified in the selected revision.

Viewing the History of a Selection

  1. In the editor, select the fragment of source code to view the history for.
  2. Choose <directory VCS> | Show History for Selection on the main VCS menu, or on the context menu of the selection.

See Also

Last modified: 24 December 2016