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.
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 in the context menu.
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. 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 Working Copy.
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. 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.
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 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.
The window opens when you run one of the commands for comparing files described above.
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:
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 icon is displayed in the right upper corner. In case of successful comparison, the icon is displayed. |
The following commands are available in the window toolbar:
In addition to viewing the changes in the working copy of a file, you can compare any two files. Click on the toolbar.
Use the "Browse" buttons to select two files for comparison in the "Base file" and "Their file" fields. Then click OK.