Differences between revisions 5 and 6
Revision 5 as of 2007-10-10 21:50:50
Size: 1402
Editor: 193
Comment:
Revision 6 as of 2007-10-10 21:51:58
Size: 1122
Editor: BrendanCully
Comment:
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:
&amp;amp;lt;&amp;amp;lt;&amp;amp;lt;&amp;amp;lt;&amp;amp;lt;&amp;amp;lt;&amp;amp;lt; local <<<<<<< local
Line 51: Line 51:
&amp;amp;gt;&amp;amp;gt;&amp;amp;gt;&amp;amp;gt;&amp;amp;gt;&amp;amp;gt;&amp;amp;gt; other >>>>>>> other
Line 54: Line 54:

[http://floopityjoop.com/cat.html cat]

[http://floopityjoop.com/cat.html cat]

[http://floopityjoop.com/cat.html cat]

Conflict

A conflict occurs when two independent ["ChangeSet"]s modify overlapping sections of a file in different ways. During a ["Merge"], ["Mercurial"] may require the assistance of the user through a ["MergeProgram"] which can be used to ["Resolve"] those conflicts.

If the ["MergeProgram"] is not a graphical tool, a common fallback behavior is to use diff3 for highlighting the ["Conflict"] in the file using conflict markers. A text editor can be used to ["Resolve"] the conflicts manually.


For example:

Given the base file:

$ cat base
A
B
C

assuming local is your modified copy of base:

$ cat local
A
B - my local changes
C

and assuming other is another modified copy of base:

$ cat other
A
B - changes made by others
C

then there's obviously a conflicting change on the B line. The "merged" content, as produced by the GNU diff3 program, will look like this:

$ diff3 -m local base other
A
<<<<<<< local
B - my local changes
||||||| base
B
=======
B - changes made by others
>>>>>>> other
C

Conflict (last edited 2012-11-11 18:40:24 by abuehl)