When you use a version control system, you might need to merge changes you made to a file with changes made to the same file by someone else. When you update a locally modified file, CVS automatically merges changes from the repository with changes made to your local file. But when conflicts occur, you must decide how to resolve each conflict before you can check your local file into the repository.
Each conflict is marked with arrows followed by the lines from the two files that caused the conflict. To resolve conflicts manually in the source file, delete the arrows and the text that you do not want for each conflict in the file. You can also use the Merge Conflicts Resolver to fix merge conflicts graphically in the IDE.
To resolve merge conflicts through the Merge Conflicts Resolver:
The Merge Conflicts Resolver is displayed. Merge conflicts are highlighted in red. The icons in the upper-lefthand corner allow you toggle through the conflicts in the file.
If neither pane has the text you want, open your source file and edit it.
When you are done making changes, right-click the node of your source file
and choose CVS Update
from the contextual menu. Then repeat Step 1 in this section.
The text you chose is now highlighted in green and is displayed in the Merge Result pane. The text in the pane you did not choose is highlighted in blue.
![]() |
The Merge Conflict Resolver is also available for PVCS filesystems. |
See Also | |
---|---|
Merging File Revisions Creating and Applying a Patch Comparing File Revisions Visually Versioning Window |