Have you ever wondered if you could view when and what code changes are done in a particular ABSL file or how to view the code changes in comparison with previous versions? Then this new functionality introduced in 2002 upgrade release covers it all. Read on to know more about the Version Management functionality.
Till now, if there were any changes done in ABSL file, partners were unable to view who made the changes and when. Now from 2002 release it is possible to view all the edits (Save) performed on the ABSL in the current patch version. Following are the functionalities available as part of the Version Management feature: –
- Display – View the code of the selected version
- Compare – Compare the code between two selected versions
- Revert – Revert the code to the selected Version
Now if you login to SDK and right click on any ABSL file, you will see a new option called Manage Versions as shown in the screen shot below:
Let’s see the features in detail:-
Once you click on the option Manage Versions, you will be able to see all the versions for that ABSL.
You can select the version which you want to view and click on the button Display. This will open a window with the code snippet for that particular ABSL file version.
The version which is showing in the top will always be the latest version. Select the check box against each version which you want to compare the code changes and click on the compare button. This will display a screen as shown below:
This example shows the differences in version 1 in comparison with version 2. The highlight in red color will show the codes which had been removed in the previous version and green highlight will show the codes which has been added in the current version. Similarly, you can see Selected and Unchanged codes in respective colors as shown.
Please note that once you select multiple versions, automatically Display and Revert buttons will be greyed out and only compare button will be enabled.
If there is a scenario where you have made any changes in ABSL, but you realized later that you want to go back to one of the previous versions. In such cases you just need to select the version which you want to go back and click on Revert button. You will get the below pop-up message asking:
“Do you want to revert to Version X”
You can click on Yes if you want to proceed, then you will get another pop-up message: The code is reverted to Version X. Save and Activate the file, as shown below in the screenshot:
Once you Activate the file, a new version will get created. And if you compare the latest version to which the version you reverted to, both will be the same.
Also, if you want to copy the code snippet of a particular version, you can just select the version and click on display. Here you can just select and copy the code
- These versions will get created each time you make any changes in the ABSL and Save. Also, these versions will be available to view only in the current patch and this will reset once you create the next patch version.
- In case more than two versions are selected, all buttons gets disabled along with an error message.
- In case the latest version is selected, the Revert button will be disabled. Because reverting to the latest version is not applicable.
Hope this feature will be helpful for you and makes your work easier!