MetaEditor HelpProjects and MQL5 StorageViewing project history

Viewing project history

MQL5 Storage applies the version control system. This means that any modification of files in a shared or personal project in the storage can be checked and, if necessary, canceled.

Comparing the working copy and the latest revision #

Before you submit changes made to the local copy of the file, you can view and check them. MetaEditor compares the current state of the file with the state at the time of the last synchronization of the file with the data storage (the local file revision).

To view changes to a file, select it in the "Navigator" window, or open it in the code editor, and then click Difference of Versions Difference of Versions in the context menu.

Comparing the selected revision with the working copy #

The MetaEditor allows you to compare any version of a file with the current working copy. You can see all the accumulated changes to the file for the selected period.

To compare a file, select it and open the storage log by executing the context menu command Show Storage Log Show Storage Log. Next, select the revision for comparison.

Comparing the files

Select the required file at the bottom of the list of files that have changed in the specified revision, and click Compare with Working Copy Compare with Working Copy.

Comparing with the previous revision #

When searching for the causes of errors, you often need to conduct a stepwise analysis of the changes. The MetaEditor allows you to compare files of any revisions with their previous state. So you can keep track of what changes were made in each of the revisions.

For such comparison, select a file and open the storage log by executing the context menu command Show Storage Log Show Storage Log. Next, select the revision for comparison. Select the required file at the bottom of the list of files that have changed in the specified revision, and click Compare with Previous Revision Compare with Previous Revision.

Comparing two revisions #

MetaEditor allows comparing two arbitrary file revisions. So you can see the changes in the file accumulated over a period of time.

To do this, select the file and open the storage log by using the Show Storage Log Show Storage Log context menu command. Next, click on two revisions, while holding Ctrl. The list of files that have changed in both revisions appears at the bottom of the window. Select the desired file and click Compare Revisions Compare Revisions.

Window for viewing changes #

The window opens when you run one of the commands for comparing files described above.

Changes

The left part of the window displays an earlier revision of a file, while the right one a recent revision. The color of the lines background shows the nature of changes:

  • Lines changed in a later version of the file are shown in green.
  • Lines added in the later file version are displayed in light blue.
  • Lines deleted from the later file version are displayed in red.

At the bottom of the window you can see a comparison of the selected line in the earlier and recent revisions.

If for any reason, file comparison failed, the Unable to compare files icon is displayed in the right upper corner. In case of successful comparison, the Files successfully compared icon is displayed.

Toolbar #

The following commands are available in the window toolbar:

  • Open files to diff – select any two files for comparison.
  • Update files – update files in the changes window. Run this command if you edit the file while comparing the changes.
  • Go to previous diff – go to the previous change in the file.
  • Go to next diff – go to the next change in the file.

Comparing two files #

In addition to viewing the changes in the working copy of a file, you can compare any two files. Click Open files to diff on the toolbar.

Choosing files to compare

Use the "Browse" buttons to select two files for comparison in the "Base file" and "Their file" fields. Then click OK.