| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html lang="en"> |
| <HEAD> |
| |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> |
| <title>Merging changes in the compare editor</title> |
| </HEAD> |
| |
| <BODY BGCOLOR="#ffffff"> |
| <H1 CLASS="Head">Merging changes in the compare editor</H1> |
| |
| <p>The toolbar buttons in the compare editor allows you to merge changes from the left file to the |
| right file and vice versa. There are four types of merges you can perform: |
| </p> |
| |
| <ul> |
| <li>Copy All from Left to Right</li> |
| <li>Copy All from Right to Left</li> |
| <li>Copy Current Change from Left to Right</li> |
| <li>Copy Current Change from Right to Left</li> |
| </ul> |
| |
| <p>The <b>Copy All from Left to Right</b> and <b>Copy All from Right to Left</b> |
| actions completely replace the contents of one resource with the other resource. |
| </p> |
| |
| <p>To merge a single change: |
| </p> |
| |
| <ol> |
| <li>Select the highlighted difference that you want to merge.</li> |
| <li>Depending on what you want to do, click either the <b>Copy Current Change |
| from Right to Left</b> or the <b>Copy Current Change from Left to Right</b> |
| toolbar button. The selected text is copied from one file to the other.</li> |
| <li>Right click to get the resource's pop-up menu, and select <b>Save</b>.</li> |
| </ol> |
| |
| <p>The image below gives an example of two files (file1.txt and file2.txt) compared. |
| </p> |
| |
| <p><img src="../images/Image80_compare_editor.png" alt="Compare view" border="0" > |
| </p> |
| |
| <P><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br> |
| <a href="../concepts/concepts-29.htm">Three way comparisons</a><br> |
| <a href="../concepts/concepts-30.htm">Synchronizing with a CVS repository</a> |
| </P> |
| |
| <p><img src="../images/ngrelt.png" alt="Related tasks" border="0" ><br> |
| <a href="tasks-68.htm">Comparing resources</a><br> |
| <a href="tasks-68bg.htm">Understanding the comparison</a><br> |
| <a href="tasks-115.htm">Synchronizing with the repository</a><br> |
| <a href="tasks-113b.htm">Resolving conflicts</a><br> |
| <a href="tasks-68b.htm">Setting preferences for comparing files</a> |
| </p> |
| |
| <p><img border="0" src="../images/ngrelr.png" alt="Related references" > |
| <br><a href="../reference/ref-25.htm">Compare editor</a> |
| <br><a href="../reference/ref-33.htm">CVS Workspace Synchronization</a> |
| </p> |
| |
| |
| |
| </BODY> |
| </HTML> |