The Merge operation combines two versions of an element, producing a new version. (That is, a successful merge operation always ends with a
Keep. This is a software configuration management best practice.) AccuRev can process both content changes and namespace changes in performing a merge. By default, the merging of text-file contents is performed by AccuRev's own Merge tool, which uses a 3-way merge algorithm (see
Versions in a 3-Way Merge).
The Merge command can also handle any other kind of version-controlled element: binary file, directory, or link.
Before you can promote your own changes to the backing stream, you must first merge (that is, combine) the changes from your colleague's version with your changes. Merging ensures that no one's work is inadvertently lost or overwritten in a concurrent development environment. Files that require a merge prior to promotion have a status of
(overlap) -- that is, the work of one or more of your colleagues has overlapped your own work.
The File Browser makes it easy to tell which files require a merge prior to promotion: files with an (overlap) status, as well as other files that require special attention before they can be promoted, are displayed in the File Browser’s Conflicts mode (
). In addition, files with
(overlap) status are highlighted in yellow in all File Browser modes.
No matter which tool you've configured to merge versions, you invoke the Merge operation in the same way: select one or more files with
(overlap) status, then click the
Merge toolbar button. Alternatively, choose
Merge or
Merge From on the selection's context menu. For example: