'Replace With' features

How to compare files with each other and replace the contents from other versions of the file in Local History.

Replace With Local History

To replace a file with a selected version of itself from Local History:

  1. In the OPL Projects Navigator, highlight the file you want to revert to one of its Local History versions and right-click to display a menu. Then choose Replace With > Local History from that menu.
  2. A popup window appears in which you can view the different versions of this file in Local History:
    Replace With Local History popup window
  3. Double-click on the version of the file that you want to compare to the current version and use as a candidate for replacement.

    The files are opened in a special view that allows you to view them side by side, with the differences between the two files highlighted:

    Replace With Local History popup window with contents

    You can use the icons that appear on the right of the lower window (Next Difference, Previous Difference, Next Change, and Previous Change) to move to the next and previous differences in the files, and thus determine whether you want to replace the contents of the current file with the contents of the version you are comparing it to.

Replace With Previous Version

To replace a file with its previous version in Local History:

  1. In the OPL Projects Navigator, highlight the file you want to revert to its previous version and right-click to display a menu. Choose Replace With > Previous Version from that menu.
  2. The file is automatically replaced with the version of the file from Local History that immediately precedes it. This creates a new version in Local History.