7. Diff, Merge, Patch, and the Change Palette : Editing a File Using the Diff Tool

Editing a File Using the Diff Tool
In addition to comparing two versions of a file, the Diff tool can help you to edit the contents of the version in your workspace. This "edit-by-diff" capability is available only when you're comparing your workspace version with another version; it's not available when you invoke the Diff tool from the Version Browser or History Browser.
Here's a procedure for using this capability (see the toolbar button summary below):
1.
Invoke the Diff tool in a File Browser, to compare your workspace version with some other ("before") version of the same file.
2.
Click the Show result of edits button in the Diff toolbar. This opens a third pane (the Edit pane), which initially contains the same text as your workspace version.
3.
Click the Revert my change toolbar button to swap in the "before" version's text at that point (a change, addition, or deletion). The button becomes highlighted to indicate your selection.
Include both the "before" and "after" versions' text at that point: click the Revert My Change toolbar button, then hold down the Ctrl key and click the Restore my change toolbar button.
You can then modify the combined text manually.
Click the Revert all of my changes button to make the Edit pane the same as the "before" version.
Click the Restore all of my changes button to make the Edit pane the same as the "after" version.
4.
Click the Save edits and close toolbar button. This simply replaces the file in your workspace. (It doesn't perform an AccuRev Keep command.)
Note: Edit-by-Diff vs. Merge
Using the edit-by-diff capability is similar to using the Merge Tool (see The AccuRev Merge Tool). But there's an important difference:

Micro Focus